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
This commit is contained in:
Michael R Sweet
2005-05-12 13:48:54 +00:00
parent 2d35bc7a2a
commit ab1757fa7d
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -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
+1
View File
@@ -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;