changeset 4652:72c9d5f9372b

Fix Layout::viewportSizeChanged.
author Sebastian Geerken
date So, 17 Jul 2016 13:09:36 +0200
parents 072f0c158c66
children be9bdfd3f848
files dw/layout.cc
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/dw/layout.cc	So Jul 17 12:04:52 2016 +0200
+++ b/dw/layout.cc	So Jul 17 13:09:36 2016 +0200
@@ -1301,15 +1301,13 @@
 
    /* 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 ();