From 2f942e1c4a049cc64aa1ddd49dd87f0f011c8b37 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sat, 1 May 1999 15:08:22 +0000 Subject: Updated version numbers to 1.0.3. Fixed browser bug in item_width() - would read past the end of the string under certain circumstances. Fixed browser resize bug - wasn't updating bounding box during check, so it could get in an infinite loop. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@567 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Browser_.cxx | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'src/Fl_Browser_.cxx') diff --git a/src/Fl_Browser_.cxx b/src/Fl_Browser_.cxx index a2debaa2d..8558eebda 100644 --- a/src/Fl_Browser_.cxx +++ b/src/Fl_Browser_.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Browser_.cxx,v 1.10 1999/03/09 06:46:36 bill Exp $" +// "$Id: Fl_Browser_.cxx,v 1.10.2.1 1999/05/01 15:08:22 mike Exp $" // // Base Browser widget class for the Fast Light Tool Kit (FLTK). // @@ -28,6 +28,7 @@ #include #include + // This is the base class for browsers. To be useful it must be // subclassed and several virtual functions defined. The // Forms-compatable browser and the file chooser's browser are @@ -238,7 +239,11 @@ J1: // see if scrollbar needs to be switched on/off: if ((has_scrollbar_ & VERTICAL) && ( (has_scrollbar_ & ALWAYS_ON) || position_ || full_height_ > H)) { - if (!scrollbar.visible()) {scrollbar.set_visible(); drawsquare = 1;} + if (!scrollbar.visible()) { + scrollbar.set_visible(); + drawsquare = 1; + bbox(X, Y, W, H); + } } else { top_ = item_first(); real_position_ = offset_ = 0; if (scrollbar.visible()) { @@ -249,7 +254,11 @@ J1: if ((has_scrollbar_ & HORIZONTAL) && ( (has_scrollbar_ & ALWAYS_ON) || hposition_ || full_width_ > W)) { - if (!hscrollbar.visible()) {hscrollbar.set_visible(); drawsquare = 1;} + if (!hscrollbar.visible()) { + hscrollbar.set_visible(); + drawsquare = 1; + bbox(X, Y, W, H); + } } else { real_hposition_ = 0; if (hscrollbar.visible()) { @@ -634,5 +643,5 @@ void Fl_Browser_::item_select(void*, int) {} int Fl_Browser_::item_selected(void* l) const {return l==selection_;} // -// End of "$Id: Fl_Browser_.cxx,v 1.10 1999/03/09 06:46:36 bill Exp $". +// End of "$Id: Fl_Browser_.cxx,v 1.10.2.1 1999/05/01 15:08:22 mike Exp $". // -- cgit v1.2.3