mirror of
https://github.com/fltk/fltk.git
synced 2026-05-23 07:46:09 +08:00
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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user