From 57fae805f2a9ee9f161dde38141f3682bd5eb847 Mon Sep 17 00:00:00 2001 From: Sebastian Geerken Date: Sun, 17 Jul 2016 13:09:36 +0200 Subject: Fix Layout::viewportSizeChanged. --- dw/layout.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'dw/layout.cc') diff --git a/dw/layout.cc b/dw/layout.cc index 09e27cdb..32586cd5 100644 --- a/dw/layout.cc +++ b/dw/layout.cc @@ -1301,15 +1301,13 @@ void Layout::viewportSizeChanged (View *view, int width, int height) /* If size changes, redraw this view. */ if (viewportWidth != width || viewportHeight != height) { - canvasHeightGreater = false; // reset value here viewportWidth = width; viewportHeight = height; - containerSizeChanged (); - DBG_OBJ_SET_SYM ("canvasHeightGreater", - canvasHeightGreater ? "true" : "false"); DBG_OBJ_SET_NUM ("viewportWidth", viewportWidth); DBG_OBJ_SET_NUM ("viewportHeight", viewportHeight); + + containerSizeChanged (); } DBG_OBJ_LEAVE (); -- cgit v1.2.3