GNOME Bugzilla – Bug 168202
Full window isn't visible with right panels.
Last modified: 2005-05-20 17:41:15 UTC
Version details: 0.8.1 build from src.rpm on FC3 Distribution/Version: FC 3 Set your panel properties to have the panel on the right edge of your screen (i.e. not the left, top or bottom edges). Click on 'blog'. Now that 1/3rd of the window is now buried beneath the blog window, and there are no handles to move it out from under to a visible position. If your panel is set to 96 pixels wide, you can't access some of the buttons. Workaround is to move the panel, but on my 16x9 screen, a bottom panel is a large chunk of screen realestate.
Hrm.. only works for me with top/bottom panels, (left doesn't work either). The clock applet has a lot of code to handle the popup, maybe that can be used. See position_calendar_popup in clock.c.
I ported it, but it doesn't fix it completely. When the vertical panel is very wide the window is placed next to the toggle button. However, this toggle button is smaller than the panel width. I tried before to get the width/height of the panel, but that isn't easy to solve (button is centered). I think I now understand what the clock does to ensure this. The clock is also a toggle button and the clock ensures that the button width is the full panel size if you have a vertical panel. For top/bottom panels the button is always the maximum height possible. Doing that should ensure the popup can be placed correctly (I think).
Created attachment 46676 [details] [review] Let applet follow Fitt's Law and position window like the clock Ok, to make the widget expand only a self.set_applet_flags(gnome.applet.EXPAND_MINOR) was needed. Patch contains a port of position_calendar_popup from clock.c to position the window. I needed the current orientation of the panel in aligned_window.py. For this I passed the get_orient function to AlignedWindow. Not as nice as I'd like, but workable enough to be able to test the patch.
Committed on HEAD. Marking FIXED.