summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2024-11-14 19:56:41 +0100
committerRodrigo Arias Mallo <rodarima@gmail.com>2024-11-14 19:56:41 +0100
commit318d1f14e699e8dd38b73fbe2f8da1c0586ccab7 (patch)
tree547781490f7d3de4ea21dc38e4681871d91c3151
parentc2629b5f08a874109ac0b22cb21ed0fc79bc6531 (diff)
Reset resize counter when viewport size changes
To prevent the page from triggering the emergency stop at resizeIdle(), we reset the resize counter when the viewport is resized. Fixes: https://github.com/dillo-browser/dillo/issues/300
-rw-r--r--dw/layout.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/dw/layout.cc b/dw/layout.cc
index ed6f55db..33c3e75d 100644
--- a/dw/layout.cc
+++ b/dw/layout.cc
@@ -1329,6 +1329,7 @@ void Layout::viewportSizeChanged (View *view, int width, int height)
canvasHeightGreater = false; // reset value here
viewportWidth = width;
viewportHeight = height;
+ resizeCounter = 0;
containerSizeChanged ();
DBG_OBJ_SET_SYM ("canvasHeightGreater",