summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES2
-rw-r--r--src/Fl_Scrollbar.cxx1
2 files changed, 3 insertions, 0 deletions
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;