diff options
author | Jeremy Henty <onepoint@starurchin.org> | 2012-12-12 19:40:33 +0000 |
---|---|---|
committer | Jeremy Henty <onepoint@starurchin.org> | 2012-12-12 19:40:33 +0000 |
commit | 6442d8c2cdae9addb0012fe9b79375f459f500bf (patch) | |
tree | c6c991e0cbe316dbd19e8d7017d0c69636140b09 /dpi/downloads.cc | |
parent | e1a12198907bf82809bf3fe4a128a24e8db3aedb (diff) |
Download DPI Scroll should calculate the scrollbar width properly.
Diffstat (limited to 'dpi/downloads.cc')
-rw-r--r-- | dpi/downloads.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dpi/downloads.cc b/dpi/downloads.cc index 8f1c29f8..8e560d35 100644 --- a/dpi/downloads.cc +++ b/dpi/downloads.cc @@ -1100,10 +1100,14 @@ public: { Fl_Scroll::resize(x_, y_, w_, h_); Fl_Widget *resizable_ = resizable(); + int sb_size = + resizable_->h() <= h() ? 0 : + scrollbar_size() ? scrollbar_size() : + Fl::scrollbar_size(); if (resizable_) resizable_->resize(resizable_->x(), resizable_->y(), - w() - scrollbar_size(), + w() - sb_size, resizable_->h()); } DlScroll(int x, int y, int w, int h, const char *l = 0) |