summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2007-11-20 21:57:17 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2007-11-20 21:57:17 +0000
commit034a26be4149eaa3af06ce01ef517847f326745b (patch)
treea58165bff414349f51f6586afeb534c87ad25edf
parent6208077d2ab95b14e507b6713daa6b162d097365 (diff)
Update scrollbars when showing or hiding items (STR #1724)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5987 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--CHANGES2
-rw-r--r--src/Fl_Browser.cxx6
2 files changed, 5 insertions, 3 deletions
diff --git a/CHANGES b/CHANGES
index 2b9a96628..ae3f699c7 100644
--- a/CHANGES
+++ b/CHANGES
@@ -4,6 +4,8 @@ CHANGES IN FLTK 1.1.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
diff --git a/src/Fl_Browser.cxx b/src/Fl_Browser.cxx
index 8ff1f9a72..669e06a9c 100644
--- a/src/Fl_Browser.cxx
+++ b/src/Fl_Browser.cxx
@@ -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 @@ void Fl_Browser::show(int line) {
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 @@ void Fl_Browser::hide(int line) {
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();
}
}