Menu

#394 The lxde menu may not show due to incorect positioning

open
nobody
None
5
2011-09-18
2011-09-18
mocramis
No

On some configurations and depending on the screen size, the menu may pop empty : http://i53.tinypic.com/2wn5m6v.jpg
this is due to the fact that the size of the screen (used from allocation) is not really computed:

GtkAllocation allocation;
gtk_widget_set_allocation(widget, &allocation);

Though, in case of horizontal panel, the allocation is only used if x or y are out of bounds. this is the case with a top panel (*y = 0 - h;) and then, y gets an incorect value.

The obious solution is to replace gtk_widget_set_allocation by gtk_widget_get_allocation

Hopes it 'll helps

Discussion

  • mocramis

    mocramis - 2011-09-18

    patches the menu display bug.

     
  • Radik

    Radik - 2011-10-03

    It works, thanks!

     

Log in to post a comment.