[fltk.bugs] [MOD] STR #2770: menubar menus have problems near screen edges

2011-11-14 Thread Greg Ercolano

DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2770
Version: 1.3-current


A. If I position the test/menubar application such that the menubar
is at the bottom of my screen, most of the menus open "upwards"
so that the menus can be seen. But not the 'huge' menu (which should);
it opens downwards instead of upwards.

B. If I position the menubar app such that e.g. the 'international'
menubar item straddles the edge, and then I click on it, the menu
opens way off the left edge of the application (off the menubar's
left edge) instead of off the International submenu's left edge.

There may be other problems too.. I happened to notice those two
while answer a question on fltk.general.

My tests were on centos 5.5 linux with 1.3.x current, but I imagine
the issue may be across other platforms as well.


Link: http://www.fltk.org/str.php?L2770
Version: 1.3-current

___
fltk-bugs mailing list
fltk-bugs@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-bugs


Re: [fltk.bugs] [MOD] STR #2770: menubar menus have problems near screen edges

2011-11-14 Thread Manolo Gouy

DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2770
Version: 1.3-current


I believe the behavior of the "Huge" menu is correct: this menu is
so big that it can't be displayed entirely upwards, 
so it opens downwards, as a usual menu does.


Link: http://www.fltk.org/str.php?L2770
Version: 1.3-current

___
fltk-bugs mailing list
fltk-bugs@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-bugs


Re: [fltk.bugs] [MOD] STR #2770: menubar menus have problems near screen edges

2011-11-14 Thread Manolo Gouy

DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2770
Version: 1.3-current


For the "International" menu issue:
I believe the solution would be to change line 357 of src/Fl_Menu.cxx
from
if (X < scr_x) X = scr_x; if (X > scr_x+scr_w-W) X = right_edge-W; //X=
scr_x+scr_w-W;

to

if (X < scr_x) X = scr_x; if (X > scr_x+scr_w-W) X = scr_x+scr_w-W;

Thus amounts to undo a change done by Matt at r.6490
and for which the commit text gives no clue.

@Matt: any opinion about why this change was done in the first place?


Link: http://www.fltk.org/str.php?L2770
Version: 1.3-current

___
fltk-bugs mailing list
fltk-bugs@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-bugs


Re: [fltk.bugs] [MOD] STR #2770: menubar menus have problems near screen edges

2011-11-14 Thread Greg Ercolano

DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2770
Version: 1.3-current


@manolo: You might be right, not sure.

My thinking is that the 'Huge' behaves inconsistently
compared to the logic of the other menus.

It seems the menus want to open in such a way that they show
as much of themselves as possible to the user; if a menu would
open off the bottom edge of the screen, it tries to open upwards
instead, to show as much of the menu as possible.

In the case of huge, it seems to behave in a way where it tries to
do this, but sees the menu would still clip off the bottom even if
it filled the screen, and so decides to do nothing at all.

But perhaps instead of doing nothing, it could open such that the
menu is positioned with the top item at the top edge of the screen,
so as to show as much of the menu as possible (and let it clip off
the bottom)

In my test, with the menubar at the bottom of the screen,
it opens showing only 1/2 of the first item and that's it..
the entire rest of the menu is completely off screen.

Perhaps the current behavior is better in some way though,
and perhaps I'm not seeing it, but can't think why that could be.


Link: http://www.fltk.org/str.php?L2770
Version: 1.3-current

___
fltk-bugs mailing list
fltk-bugs@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-bugs


Re: [fltk.bugs] [MOD] STR #2770: menubar menus have problems near screen edges

2011-11-14 Thread Manolo Gouy

DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2770
Version: 1.3-current


I would think that opening the 'huge' menu with its top edge at the
window's top would be bad because it would hide the menu title (huge).
I would also think that showing only the end of the menu above the menu
bar would be bad.
Thus, I like the way the 'huge' menu behaves.


Link: http://www.fltk.org/str.php?L2770
Version: 1.3-current

___
fltk-bugs mailing list
fltk-bugs@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-bugs


Re: [fltk.bugs] [MOD] STR #2770: menubar menus have problems near screen edges

2011-11-14 Thread Greg Ercolano

DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2770
Version: 1.3-current


@manolo: interesting point.

I think what I've seen the other menus do is open the menu
either to the left or right of the parent to avoid blocking it.

I notice that when I scroll through "Huge" to view it even in
a "normal" app window position, the menu blocks its parent..
something it should perhaps avoid if it can with the above behavior.

I guess leaving it is OK; it's the 'B' behavior I was more concerned
about, and looks like you might have a fix for that.


Link: http://www.fltk.org/str.php?L2770
Version: 1.3-current

___
fltk-bugs mailing list
fltk-bugs@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-bugs


Re: [fltk.bugs] [MOD] STR #2770: menubar menus have problems near screen edges

2011-11-22 Thread Manolo Gouy

DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR Pending]

Link: http://www.fltk.org/str.php?L2770
Version: 1.3-current
Fix Version: 1.3-current (r9183)


I believe this issue is solved with r9183.
Greg, do you agree ?


Link: http://www.fltk.org/str.php?L2770
Version: 1.3-current
Fix Version: 1.3-current (r9183)

___
fltk-bugs mailing list
fltk-bugs@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-bugs


Re: [fltk.bugs] [MOD] STR #2770: menubar menus have problems near screen edges

2011-12-05 Thread Manolo Gouy

[STR Closed w/Resolution]

Link: http://www.fltk.org/str.php?L2770
Version: 1.3-current
Fix Version: 1.3-current (r9183)


Closed.


Link: http://www.fltk.org/str.php?L2770
Version: 1.3-current
Fix Version: 1.3-current (r9183)

___
fltk-bugs mailing list
fltk-bugs@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-bugs