Fluxbox browser window resize

When I go to a site that opens an image in a new window, then resizes that window to fit the image, fluxbox is resizing the window so the title bar is outside of the workspace.  This means I can not close, move, maximize or minimize the window without first holding down the Alt key and dragging it down some.
Anyone know how to keep Fluxbox from resizing a window outside of the actual workspace?
If it matters, this behaviour is not happening in Gnome.

dp wrote:
this is not a fluxbox problem, but a bad webmaster :-)
i would suggest you to use a browser that can override javascript from resizing windows larger than the screen (i use konqueror and all new windows open in new tags and are not allowed to resize the master window)
EDIT: ion does not allow windows to be bigger than the screen
Well this problem does not happen with Mozilla in either GNOME or KDE, but does happen with Mozilla in Fluxbox.  This would suggest to me that Fluxbox is handling the popup differently than other window managers.
I looked at the HTML and it seems to me that the webmaster is simply telling the browser to open a new window and passing along a size with no window placement information.  Mozilla is then opening up the window with the titlebar off the screen.  I would say it is Mozilla's problem except Fluxbox is the only window manager I have that is exhibiting the problem.
Here is an extremely simple page that exhibits this problem:
http://www.sitepoint.com/examples/jscri … picfit.htm
The window is first opened correctly in the top left corner.  The the Javascript resizes the window and the titlebar goes off the top.  Again, this does not happen in GNOME or KDE, so my original questions remains.  Is it possible to get Fluxbox to behave like GNOME and KDE and not run a portion of the window off the page?

Similar Messages

  • Browser window resize event

    Newbie question - sorry. How do I capture the browser window
    resize event?
    I've tried variations on this code:-
    <mx:Script>
    <![CDATA[
    import flash.events.Event;
    function mylisten():void { trace('mylisten');
    this.stage.addEventListener(Event.RESIZE,resizefn);
    function resizefn():void {
    trace('resize!');
    ]]>
    </mx:Script>

    Hi brutfood,
    you can add a handler to the resize event of the application
    as an attribute of the Application tag.
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" resize="resizeHandler()">
    Then add the handler ("t" is TextArea):
    private function resizeHandler():void {
    t.text = stage.width + " - " + stage.height;
    t.text += "\n" + stage.stageWidth + " - " +
    stage.stageHeight;
    Note the difference between the width/height and
    stageWidth/stageHeight properties: the first couple returns the
    actual stage dimension while the second returns the visible area of
    the stage.
    regards,
    Christophe

  • Refreshing problem on browser window resizing

    Hi
    I know this problem is quite common and a lot of people tried to solve this. So meybe someone could give me some info how to make an applet to be properly shown after browser resizing? Now it looks awfull, the part with buttons and textfields seems to be repainted correctly but sometimes is covered by Image object that is supposed to be in one place - but seems to travel around the page during resizing and moving browser window from one side of the screen to the another.
    Can anybody help me, please?
    ania

    The way I personally do this is to set the entire page into one large Table, with a width of 100%.
    If you are already using tables within your code, then you need to be sure you don't have any large width= values set.  Also, if your site has fancy graphics, you need to find somewhere on the page to allow some 'stretching' of those graphics.
    Here's a quick example of a page that will automatically adjust based on screen size (remember, just because they are viewing at 1280 x 1024 resolution doesn't automatically mean that their browser is maximized.. it could be reduced/resized on their screen to smaller dimensions - this code will fix that)
    <table border="0" cellspacing="0" cellpadding="4" width="100%">
    <tr><td bgcolor="black"><font color="white"><b>This could be a navigation area<Br>Just putting it here for demonstration</b></font></td>
    <td width="100%" bgcolor="silver"><font color="black"><b>This could be the main area, and since it has a width of 100% it will stretch horizontally based on how much actual screen space is available on the viewers browser window</b></font></td>
    <td align="right"><font color="navy">This is a right column, and since it is set to 'align=right' it will allow the center column to strech back and forth</font></td></tr></table>
    By experimenting with setting the width= attribute on different columns, you can get different results.  Just remember to set the main table width at 100%, and be sure t have at least one TD that has a width of 100% and you should be good to go
    WHeis

  • Browser window resize on entering website

    Hi. I'm quite new to DW so apologies if this is simple to do.
    I've developed a website in flash, kind of a console 900x500 pixels
    and housed it in an html page using dreamweaver. i'm trying to set
    it up so the browser window will resize to 900x500 when loading the
    page. I know how to do this in DW for a popup window but is there
    some javascript that will do this automatically as the main page
    loads? I've tried a few scripts i found on google but its not
    working. I'm testing in firefox and safari and am looking for a
    script or method that would also work in IE. The console doesn't
    look good on a large background so any help would be appreciated,
    Thanks guys, Dren.

    Essentially it can't be done. Modern browsers prevent it.
    Usability data
    strongly suggests visitors hate it. Controlling the visitor's
    browser size
    is considered arrogant. I suggest you rethink your design
    strategy as this
    is probably a losing battle on many fronts.
    Walt
    "drennan_uk" <[email protected]> wrote in
    message
    news:g1pagp$67d$[email protected]..
    > Hi. I'm quite new to DW so apologies if this is simple
    to do. I've
    > developed
    > a website in flash, kind of a console 900x500 pixels and
    housed it in an
    > html
    > page using dreamweaver. i'm trying to set it up so the
    browser window
    > will
    > resize to 900x500 when loading the page. I know how to
    do this in DW for
    > a
    > popup window but is there some javascript that will do
    this automatically
    > as
    > the main page loads? I've tried a few scripts i found on
    google but its
    > not
    > working. I'm testing in firefox and safari and am
    looking for a script or
    > method that would also work in IE. The console doesn't
    look good on a
    > large
    > background so any help would be appreciated, Thanks
    guys, Dren.
    >

  • Movie Clip / Browser Window Resize?

    Hello Everyone,
    I was wondering if anyone knew of a way that you could make a
    single movie clip in your .swf react to the current width of the
    browser window, when its loaded.
    I would like to use this specific piece of code to
    dynamically center an "enter" button on a website.
    Thank you in advance

    If you set the properties of your .swf to 100% width and
    height your movie will automatically fill the browser regardless of
    resolution. Note if your using a colored background for your web
    page you will see white striping down each side of your movie. just
    set the param for bgcolor to what ever you need it to be
    Kevin

  • Open browser window resizing problem

    I want to have a small browser window open on top of my main
    browser page. The open browser window behavior sizing is not
    working. The window remains in the default size. So I added this
    java script to the page I want to be smaller
    <SCRIPT language="JavaScript1.2">
    self.resizeTo(400,600);
    </SCRIPT>
    This did make the window size small, but when returning to
    the main browser window that window is now the same small size as
    the smaller window.
    Now what.
    thanks, cyndee

    Add a ... ;return false ... to the end of the
    MM_openBrWindow() event
    call as in the example below... Make sure you place a
    semicolon between the
    end of the event call and the return false.
    <span class="link"><a
    href="Gourd%20Purchasing%20Policies.html"
    onClick="MM_openBrWindow('Gourd%20Purchasing%20Policies.html','gourdpurchasingpo
    licies','width=560,height=770');return false">Purchasing
    Policies</a></span><br>
    Regards,
    ..Trent Pastrana
    www.fourlevel.com
    "cyndee newick" <[email protected]> wrote in
    message
    news:fcp491$4sc$[email protected]..
    > Here is how dreamweaver wrote the open browser code.
    >
    > <span class="link"><a
    href="Gourd%20Purchasing%20Policies.html"
    >
    onClick="MM_openBrWindow('Gourd%20Purchasing%20Policies.html','gourdpurchasingpo
    > licies','width=560,height=770')">Purchasing
    Policies</a></span><br>
    >
    > thanks
    >

  • Resizing Browser Window

    Hi,
    I'm looking to publish my site and have the browser window
    resize (or stay resized at) the document size (1000x674).
    I thought i set the proper parameters in DW (i have a SWF
    inside of it), but there seems to be extra white space on the right
    side of the published document...(this seems to be outside of the
    1000x674 default size)
    i may be missing a line of code somewhere.
    any help would be appreciated...you can see what i mean at
    www.tunnel76.com
    thank you in advance.
    j.

    Why not just center the page content? Users tend to get
    annoyed when the
    browser gets adjusted without their consent.
    Dan Mode
    ->Adobe Community Expert
    *Flash Helps*
    http://www.smithmediafusion.com/blog/?cat=11
    *THE online Radio*
    http://www.tornadostream.com
    *Must Read*
    http://www.smithmediafusion.com/blog
    "flashingnotallowed" <[email protected]>
    wrote in message
    news:eaugas$al3$[email protected]..
    > Hi,
    >
    > I'm looking to publish my site and have the browser
    window resize (or stay
    > resized at) the document size (1000x674).
    > I thought i set the proper parameters in DW (i have a
    SWF inside of it),
    > but
    > there seems to be extra white space on the right side of
    the published
    > document...(this seems to be outside of the 1000x674
    default size)
    > i may be missing a line of code somewhere.
    > any help would be appreciated...you can see what i mean
    at
    > www.tunnel76.com
    > thank you in advance.
    > j.
    >

  • I cannot move, resize, minimize, or close the browser window despite everything inside the window still working.

    I don't know what details are needed so I'll just rattle off anything that I can think of.
    I am running an Asus laptop with windows 7. I have never had an issue with firefox in the past (beyond the usual freezing and some obvious issues with pop up ads that are par for the course with firefox since adblocker never does what it says.... not really. Lets be honest.) I am using Avast for my virus protection and it is also up to date.
    My issue started about an hour ago when firefox stopped responding. The video I had playing kept going but I could not interact with anything. Assuming the program froze for the billionth time that week I rebooted it. This has always solved freezing issues in the past. Now, however, firefox is doing something new.
    I can access the menus and almost everything on the window itself except for the minimize/maximize/close buttons, I cannot move the window at all, and I cannot manually resize it. I have also noticed that although videos will play, I can only click on their buttons if there is another smaller window overtop of firefox. The video controls will only appear that way and when I click them firefox naturally comes to the front and the video responds with the button I used but the buttons are gone again and I cannot resume playing without the smaller window back in front to make the buttons show again.
    It's as if half of firefox is frozen while the other half is still running somehow.
    I have no themes that could be causing this. Literally none. I only use firefox for the things that can no longer be opened in Opera so I have no need for any theme beyond default. The only addons I installed on purpose were adblockers (lord knows why. they don't DO anything.) though several other random things seem to have been installed over time to aid in one thing or another. Various plugins and players and versions of java, that sort of thing. But I have everything (and i mean EVERYTHING) in the addon menu disabled.
    I have tried booting it up in safe mode (the program, not windows) and the problem is still there except now it won't show the menu bar at all unless I press the alt key first and even then it wont let me actually click on anything in the menu bar. When I try the whole bar vanishes. I had to close firefox with the task manager.
    Rebooting will fix the issue for about 15 seconds before it all comes back.
    Any attempts at updating have failed as it says I am already up to date on everything so I don't know what its issue is.
    It's not an urgent issue right now as most of what i need to do can be done on the half screen window I am using, but some of my sites have buttons that literally vanish in anything but full screen and I imagine that this will be a much greater annoyance within a few days.

    After following all the instructions given, I poked around safe websites as suggested. I am not sure why this step was needed, as websites functioned rather normally before I came here but I did it anyways and found that the websites still work the same as they did. I can still do everything I used to be able to do. I see no change in the function of the websites.
    However, I still cannot resize, close, or move the browser window. I don't know if Netflix is a safe site or not (too many conflicting opinions on that one from the masses) so I don't know if the issue with the vanishing buttons is still there, but all the issues I had with the browser window itself is still there.
    Even in safe mode the browsers three window control buttons on the top right refuse to let me use them and the window itself will refuse to be moved around.

  • How do I stop text from resizing to the size of the browser window

    Hello there,
    I am using a DW CS3 template that has a sidebar div and a
    main content div - the text in the main content div keeps resizing
    to the size of the browser window - I don't want the text to resize
    if I make the browser window smaller - I want it to remain the
    same. I am trying to float the text right and input a width but
    this is not working for me. What am I doing wrong?
    HELP!
    Many thanks!

    >>What am I doing wrong?
    Not giving us a link to the uploaded page so we can see the
    page, how it
    behaves and the actual code.
    Until we see that you are unlikely to get a definitive
    answer. The problem
    is unlikely as you state it because text itself is never
    dependant on the
    browser viewport size.
    Walt
    "Fun Leprechaun" <[email protected]> wrote
    in message
    news:g9f7rq$ie4$[email protected]..
    > Hello there,
    >
    > I am using a DW CS3 template that has a sidebar div and
    a main content
    > div -
    > the text in the main content div keeps resizing to the
    size of the browser
    > window - I don't want the text to resize if I make the
    browser window
    > smaller -
    > I want it to remain the same. I am trying to float the
    text right and
    > input a
    > width but this is not working for me. What am I doing
    wrong?
    >
    > HELP!
    >
    > Many thanks!
    >

  • How do I easily resize firefox browser window in Vista?

    I need to resize browser window so I can see a part of my desktop.

    Thanks for your ongoing help. (And if this winds up being a duplicate post, my apologies in advance.)
    I typed about:synch-log into the address bar and got an exclamation point inside a triangle next to a boldfaced message that reads "The address isn't valid."
    Below that, in a box:
    The URL is not valid and cannot be loaded
    Then a line then two bullet points
    * Web address are usually written like http://www.example.com
    * Make sure that you're using forward slashes (i.e. /)

  • How can you stop slideshow from resizing the browser window iframe ?

    Does anyone know where the code is that causes the iweb slideshow to resize the browser window when it is opened?
    When it is placed on a page using <iframe src="http://homepage.mac.com/coreydee/slideshow/index.html" width="760" height="580" scrolling="no" style="border:none;" frameborder="0"></iframe> It resizes the browser window when it starts.

    Does anyone know where the code is that causes the
    iweb slideshow to resize the browser window when it
    is opened?
    When it is placed on a page using <iframe
    src="http://homepage.mac.com/coreydee/slideshow/index.
    html" width="760" height="580" scrolling="no"
    style="border:none;" frameborder="0"></iframe> It
    resizes the browser window when it starts.
    The iWeb .Mac slideshow, which you previously tried to add in an iframe, does have a function to resize the window. But it would not cause the whole window to resize, just page within the iframe so you would never know.
    However, the autoviewer one you are using should not do this.

  • Regarding resizing of browser window

    Hi,
      I am working on getting my UI to resize accordingly if the user resizes their browser window on the desktop. I know how it is done using css and using javascript, but what I want to know is if there is any SAPUI5 specific functionality to support this. Specifically I wanted to know if individual UI components could detect size changes so I could implement some different logic in their case. I have so far not been able to find any such functionality. If anyone can share info regarding this it would be great.
    Thanks

    Hi Adarsh,
    you said: Specifically I wanted to know if individual UI components could detect size changes so I could implement some different logic in their case.
    No, that's not possible. The only way to detect and handle the resize of the screen with JavaScript is via window object:
    window.onresize = function(event) {
        // your code
    Regards Michael

  • Itunes browser window won't resize to enable license agreement for ipod

    Hi,
    hope someone can help me I am new to itunes and just purchased an ipod classic.Every thing is fine except I can't resize the itunes browser window to be able to read and accept the license agreement to be able to use my ipod.
    The document seems too large for the browser window.I know there must be an accept button to click on to agree to the terms,but it is not visible.I can read the agreement of terms.But I can only see the cancel and save buttons on left at the bottom of screen.There is no sliding bar to access the right hand side of the page/doc/browser window.
    I've tried looking in preferences,itunes help doc. and stretching the window using the mouse, to no avail.
    Thanks for your time.
    Any help would be appreciated.
    John.

    can't resize the itunes browser window
    Change your screen resolution to at least 1024x768.

  • How to create a navigation that resizes with browser window

    Hello,
    I came upon this site http://www.smetana.net/. In it the navigation components resize with the browser window change of size but the content remains the same size. I would like to build something similar for my site but I have no idea how this is done. I don't mind doing the work but I need a direction
    Thanks
    Ravital

    The following links are for tutorials that address various aspects of Flash Full Screen Adaptable design
    http://www.tutorio.com/tutorial/liquid-flash-layout
    http://www.gotoandlearn.com/play?id=31
    http://www.developphp.com/Flash_tutorials/show_tutorial.php?tid=128

  • Resizing cflayout based on browser window

    How can I base the cflayout on the browser window's visible area? Every time I  resize the window my controls are being displayed off screen with no scroll bars  to get to them. Ideally I'd like the layout to be dynamic enough to resize  gracefully without needing the scroll bars. Thanks

    The way I personally do this is to set the entire page into one large Table, with a width of 100%.
    If you are already using tables within your code, then you need to be sure you don't have any large width= values set.  Also, if your site has fancy graphics, you need to find somewhere on the page to allow some 'stretching' of those graphics.
    Here's a quick example of a page that will automatically adjust based on screen size (remember, just because they are viewing at 1280 x 1024 resolution doesn't automatically mean that their browser is maximized.. it could be reduced/resized on their screen to smaller dimensions - this code will fix that)
    <table border="0" cellspacing="0" cellpadding="4" width="100%">
    <tr><td bgcolor="black"><font color="white"><b>This could be a navigation area<Br>Just putting it here for demonstration</b></font></td>
    <td width="100%" bgcolor="silver"><font color="black"><b>This could be the main area, and since it has a width of 100% it will stretch horizontally based on how much actual screen space is available on the viewers browser window</b></font></td>
    <td align="right"><font color="navy">This is a right column, and since it is set to 'align=right' it will allow the center column to strech back and forth</font></td></tr></table>
    By experimenting with setting the width= attribute on different columns, you can get different results.  Just remember to set the main table width at 100%, and be sure t have at least one TD that has a width of 100% and you should be good to go
    WHeis

Maybe you are looking for