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
This commit is contained in:
parent
6208077d2a
commit
034a26be41
2
CHANGES
2
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
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user