summaryrefslogtreecommitdiff
path: root/src/Fl_Browser_.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2016-03-29 11:54:44 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2016-03-29 11:54:44 +0000
commit109ebd2dc03973c66cd8b2511f85b5f49e0b5ccb (patch)
tree6e76de1a6dbc8a0a16f9970e5bb9150e41d445ba /src/Fl_Browser_.cxx
parent1dca798b6e47b3bac50d44c3140eb4fc69c85e71 (diff)
Fix Fl_Browser::textsize(int) to adjust the scrollbars (STR #3057).
Setting a different text size didn't affect the scrollbars. Port of branch-1.3, r11453 and r11464. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11465 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Browser_.cxx')
-rw-r--r--src/Fl_Browser_.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Fl_Browser_.cxx b/src/Fl_Browser_.cxx
index a85fc0153..fbbc3bfa5 100644
--- a/src/Fl_Browser_.cxx
+++ b/src/Fl_Browser_.cxx
@@ -113,6 +113,7 @@ void Fl_Browser_::resize(int X, int Y, int W, int H) {
hscrollbar.resize(
X, scrollbar.align()&FL_ALIGN_TOP ? Y-scrollsize : Y+H,
W, scrollsize);
+ max_width = 0;
}
// Cause minimal update to redraw the given item: