Browse Source

Some more scrollbar tweaks from Alessandro for STR #871...

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4495 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
pull/168/head
Michael R Sweet 20 years ago
parent
commit
eb2af9e92b
  1. 4
      src/Fl_Help_View.cxx

4
src/Fl_Help_View.cxx

@ -1648,7 +1648,7 @@ Fl_Help_View::format() @@ -1648,7 +1648,7 @@ Fl_Help_View::format()
if (size_ < (h() - 24)) {
scrollbar_.hide();
hscrollbar_.resize(x() + Fl::box_dx(b), y() + h() - 17 - dy, w(), 17);
hscrollbar_.resize(x() + Fl::box_dx(b), y() + h() - 17 - dy, w() - Fl::box_dw(b), 17);
} else {
scrollbar_.show();
scrollbar_.resize(x() + w() - 17 - dx, y() + Fl::box_dy(b), 17, h() - 17 - Fl::box_dh(b));
@ -1659,7 +1659,7 @@ Fl_Help_View::format() @@ -1659,7 +1659,7 @@ Fl_Help_View::format()
if (size_ < (h() - 8)) scrollbar_.hide();
else {
scrollbar_.resize(x() + w() - 17 - dx, y() + Fl::box_dy(b), 17, h());
scrollbar_.resize(x() + w() - 17 - dx, y() + Fl::box_dy(b), 17, h() - Fl::box_dh(b));
scrollbar_.show();
}
}

Loading…
Cancel
Save