Author: mike
Date: 2007-11-20 13:57:17 -0800 (Tue, 20 Nov 2007)
New Revision: 5987
Log:
Update scrollbars when showing or hiding items (STR #1724)


Modified:
   branches/branch-1.1/CHANGES
   branches/branch-1.1/src/Fl_Browser.cxx

Modified: branches/branch-1.1/CHANGES
===================================================================
--- branches/branch-1.1/CHANGES 2007-11-20 21:52:54 UTC (rev 5986)
+++ branches/branch-1.1/CHANGES 2007-11-20 21:57:17 UTC (rev 5987)
@@ -4,6 +4,8 @@
          STR #1457, STR #1458, STR #1460, STR #1481, STR #1578,
          STR #1639, STR #1645, STR #1644, STR #1792, STR #1793,
          STR #1742, STR #1777)
+       - Fl_Browser::hide() and Fl_Browser::show() did not
+         correctly update the scrollbar (STR #1724)
        - The configure script now shows a summry of the
          configuration results (STR #1810)
        - "fltk-config --use-* --libs" did not list all of the

Modified: branches/branch-1.1/src/Fl_Browser.cxx
===================================================================
--- branches/branch-1.1/src/Fl_Browser.cxx      2007-11-20 21:52:54 UTC (rev 
5986)
+++ branches/branch-1.1/src/Fl_Browser.cxx      2007-11-20 21:57:17 UTC (rev 
5987)
@@ -3,7 +3,7 @@
 //
 // Browser widget for the Fast Light Tool Kit (FLTK).
 //
-// Copyright 1998-2005 by Bill Spitzak and others.
+// Copyright 1998-2007 by Bill Spitzak and others.
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Library General Public
@@ -472,7 +472,7 @@
   if (t->flags & NOTDISPLAYED) {
     t->flags &= ~NOTDISPLAYED;
     full_height_ += item_height(t);
-    if (Fl_Browser_::displayed(t)) redraw_lines();
+    if (Fl_Browser_::displayed(t)) redraw();
   }
 }
 
@@ -481,7 +481,7 @@
   if (!(t->flags & NOTDISPLAYED)) {
     full_height_ -= item_height(t);
     t->flags |= NOTDISPLAYED;
-    if (Fl_Browser_::displayed(t)) redraw_lines();
+    if (Fl_Browser_::displayed(t)) redraw();
   }
 }
 

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to