From ab1757fa7d991772163bf1a6552001d5f80f5b6a Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 12 May 2005 13:48:54 +0000 Subject: Fl_Scrollbar didn't compute the correct knob size when using the "nice" types (STR #845) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4330 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- CHANGES | 2 ++ src/Fl_Scrollbar.cxx | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGES b/CHANGES index 4eb920698..f2e54e488 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,8 @@ CHANGES IN FLTK 1.1.7 - Documentation fixes (STR #648, STR #692, STR #730, STR #744, STR #745) + - Fl_Scrollbar didn't compute the correct knob size when + using the "nice" types (STR #845) - fl_draw() would segfault on WIN32 if no font was set; it now uses the default font (STR #828) - Fl_Browser_ was calling the callback multiple times for diff --git a/src/Fl_Scrollbar.cxx b/src/Fl_Scrollbar.cxx index 7cb148322..47b853320 100644 --- a/src/Fl_Scrollbar.cxx +++ b/src/Fl_Scrollbar.cxx @@ -88,6 +88,7 @@ int Fl_Scrollbar::handle(int event) { else { int S = int(slider_size()*ww+.5); int T = (horizontal() ? H : W)/2+1; + if (type()==FL_VERT_NICE_SLIDER || type()==FL_HOR_NICE_SLIDER) T += 4; if (S < T) S = T; double val = (maximum()-minimum()) ? (value()-minimum())/(maximum()-minimum()) : 0.5; -- cgit v1.2.3