Bugzilla – Bug 402315
SLAB menu opens to the left on small screens when it should open to the right
Last modified: 2010-11-27 16:41:49 UTC
Created attachment 223475 [details] menu should open to the right On a fresh intall of openSUSE 11.0 on a subnotebook, the slab menu tries to open to the left which makes it useless. It should open to the right. The screenshot should make things clear.
This happens in slab_window_allocate_cb(). The logic to move the window if it doesn't fit in the default location is wrong. Setting priority to high as applications can't be launched at all while the bug is present.
Federico, when you digg in to this, can you make sure that we get the correct behavior with the patch attached to http://bugzilla.gnome.org/show_bug.cgi?id=398552 as well? The first time g-m-m is opened after applying that patch, it will open partly off screen.
Created attachment 276170 [details] gnome-main-menu-bnc402315-slab-on-small-monitors.diff Magnus, could you try this patch plus that other one you mention for line wrapping?
So, your patch doesn't do anything for my issue. It seems as the code needs to extended to catch size-allocate signals. I opened a new bug report for that though (bnc#480765)
*** Bug 447822 has been marked as a duplicate of this bug. ***
I've confirmed that this patch works for small displays, and it's pushed upstream now. I'll check the interaction with the patch which Magnus mentions in comment #4.
Works nicely for me, even with the patch for libslab from bgo#398552. I'm not seeing the problem that Magnus mentions in bug #480765... Magnus, could you please test this again? (I'm in openSUSE 11.2, BTW).
Closing, as per last comment.