diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-05-12 13:48:54 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-05-12 13:48:54 +0000 |
| commit | ab1757fa7d991772163bf1a6552001d5f80f5b6a (patch) | |
| tree | d0086a999e7be577b35d28818de2b45231ebcc3d | |
| parent | 2d35bc7a2a39f0f41802344e1103d036fc7231a8 (diff) | |
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
| -rw-r--r-- | CHANGES | 2 | ||||
| -rw-r--r-- | src/Fl_Scrollbar.cxx | 1 |
2 files changed, 3 insertions, 0 deletions
@@ -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; |
