summaryrefslogtreecommitdiff
path: root/dw/layout.cc
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2011-05-12 07:56:37 -0400
committerJorge Arellano Cid <jcid@dillo.org>2011-05-12 07:56:37 -0400
commit0b7264545ccd3dfe286e66f7fe1f282c46a12d31 (patch)
treebf0aa01ea2b8527dc216475bc37a96c9074ea4e3 /dw/layout.cc
parent3e7f5e64ef7f922afcdaf1152e6c1f2b696f47d8 (diff)
Bug fix: resize the viewport internally (when attached to a layout)
* It also has a fix for scrollbars resize, and an optimization to avoid scrollbar adjustment overhead.
Diffstat (limited to 'dw/layout.cc')
-rw-r--r--dw/layout.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/dw/layout.cc b/dw/layout.cc
index b430eaa1..a02c87b7 100644
--- a/dw/layout.cc
+++ b/dw/layout.cc
@@ -679,10 +679,9 @@ void Layout::resizeIdle ()
}
// Set viewport sizes.
- if (view->usesViewport ())
- view->setViewportSize (viewportWidth, viewportHeight,
- actualHScrollbarThickness,
- actualVScrollbarThickness);
+ view->setViewportSize (viewportWidth, viewportHeight,
+ actualHScrollbarThickness,
+ actualVScrollbarThickness);
}
}