| Issue 2: | New window takes all of screen height (including area under bottom panel bar) | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem? 1. Start TW 2. The bottom frame of the main app window disappears under the menu bar/panel at the bottom of the screen. (standard Ubuntu/Gnome) 3. I can't resize window, because the bottom-right resize area is inaccessible (unless I hide the bottom panel.) >> Maybe the main app window should try to use 95% of the screen height? |
|
,
Jul 10, 2008
Strange, it doesn't do that for me (Ubuntu/Gnome, Hardy Heron, x86) -- the window fits neatly between the top and bottom panel areas. (There are issues with windows overlapping slightly in the center of the screen, but vertically they fit fine.) Window size and positioning needs a bunch of attention anyhow, but I'm surprised that we see different behavior on this particular issue. |
|
,
Jan 06, 2009
As described in http://doc.trolltech.com/4.4/geometry.html the window managers working under X11 decorate (i.e. add frames, etc.) asynchronously. Hence the exact window size (including the frame) is not known at the time the windows are positioned and resized (when the window is created). Note that the windows should be placed correctly if the positioning function is invoked manually from the menu after the window is fully displayed. (Couriously, I have to call TWUtils::zoomToHalfScreen() twice for PDF views; after the first call the window is resized correctly but not positioned correctly) I've attached a patch that should work around this issue by estimating the frame border width by the frame border width of an MDI window (which is exposed via QStyle::pixelMetric()). It works fine for me on Ubuntu 8.10 / Gnome 2.24.1. This may solve the screen height problem as well as the border is also taken into account for the calculation of the height. Note that at least on my installation, the window seemed to snap to the panel bars / window width within certain limits. This could explain why the window height was correct on some systems and wrong on others. |
|
,
Apr 14, 2009
I just found that, when enabling visual effects in Ubuntu, the TW window (regardless of my last patch) aligns neatly with the top panel, but extends beneath the bottom panel. When disabling the visual effects everything behaves as it should regarding the top/bottom panels. Tested on Ubuntu 8.10 (Intrepid), with Gnome 2.24.1 |
|
,
Apr 14, 2009
Thanks for this! That probably explains why some people see this problem while others on apparently similar systems don't have them. I hadn't realized this was a critical factor, so this is great information. |
|
|
|