summaryrefslogtreecommitdiff
path: root/dw/fltkviewport.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2011-01-16 22:04:09 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2011-01-16 22:04:09 +0100
commit7e23abaa62cbc91fad7d4443b9ca2e1063585170 (patch)
treee6bc52c5a8e2bb7c063cc1fdd57e2b23cc231212 /dw/fltkviewport.cc
parent2d3fc936c29d039b644d6b4fa879fa584fdb7d96 (diff)
Fl_Group::resize() before adjustScrollbarsAndGadgetsAllocation()
Diffstat (limited to 'dw/fltkviewport.cc')
-rw-r--r--dw/fltkviewport.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/dw/fltkviewport.cc b/dw/fltkviewport.cc
index 2d178f0e..1af1177d 100644
--- a/dw/fltkviewport.cc
+++ b/dw/fltkviewport.cc
@@ -145,11 +145,13 @@ void FltkViewport::hscrollbarCallback (Fl_Widget *hscrollbar,void *viewportPtr)
void FltkViewport::resize(int X, int Y, int W, int H)
{
- if (W != w() || H != h()) {
+ bool dimension_changed = W != w() || H != h();
+
+ Fl_Group::resize(X, Y, W, H);
+ if (dimension_changed) {
theLayout->viewportSizeChanged (this, W, H);
adjustScrollbarsAndGadgetsAllocation ();
}
- Fl_Group::resize(X, Y, W, H);
}
void FltkViewport::draw_area (void *data, int x, int y, int w, int h)