Author: matt
Date: 2008-10-19 14:28:06 -0700 (Sun, 19 Oct 2008)
New Revision: 6478
Log:
Fixed menu position on screen border (STR #2057)
Modified:
branches/branch-1.1/CHANGES
branches/branch-1.1/src/Fl_Menu.cxx
Modified: branches/branch-1.1/CHANGES
===================================================================
--- branches/branch-1.1/CHANGES 2008-10-19 20:53:53 UTC (rev 6477)
+++ branches/branch-1.1/CHANGES 2008-10-19 21:28:06 UTC (rev 6478)
@@ -12,6 +12,7 @@
- Fixed adding an idle handler during
a draw() call (STR #1950)
- Improved stability of fl_read_image (STR #2021)
+ - Fixed menu position on screen border (STR #2057)
CHANGES IN FLTK 1.1.9
Modified: branches/branch-1.1/src/Fl_Menu.cxx
===================================================================
--- branches/branch-1.1/src/Fl_Menu.cxx 2008-10-19 20:53:53 UTC (rev 6477)
+++ branches/branch-1.1/src/Fl_Menu.cxx 2008-10-19 21:28:06 UTC (rev 6478)
@@ -327,7 +327,7 @@
if (Wp > W) W = Wp;
if (Wtitle > W) W = Wtitle;
- if (X < scr_x) X = scr_x; if (X > scr_x+scr_w-W) X= scr_x+scr_w-W;
+ if (X < scr_x) X = scr_x; if (X > scr_x+scr_w-W) X = right_edge-W; // X=
scr_x+scr_w-W;
x(X); w(W);
h((numitems ? itemheight*numitems-LEADING : 0)+2*BW+3);
if (selected >= 0)
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit