Project

General

Profile

Actions

Bug #13554

closed

Resizable WBoxLayout causes browser window to freeze

Added by Stefan Bn 3 months ago. Updated about 1 month ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
02/21/2025
Due date:
% Done:

0%

Estimated time:

Description

This behavior started with version Wt 4.11.2 and is present in Wt 4.11.3. In earlier versions it was fine overall.

When using a WBoxLayout in resizable mode WBoxLayout::setResizable (probably within a WMenu with WStackedWidget) then the Wt-App causes the browser window to freeze following error messages like "This page slows down your browser" or "This site does not respond".

I've extracted the relevant code into the sample attached. The behavior only occures when WBoxLayout::setResizable is set together with WLayout::setContentsMargins.

Steps to reproduce:
Press "Click here to freeze". If the page doesn't freeze immediately then resize the browser window by dragging to smaller and larger sizes back and forth, then it will freeze.

I can reproduce this with current versions of Firefox, Edge and Opera on Windows 10, 64 bit.


Files

main.cpp (2.36 KB) main.cpp Stefan Bn, 02/21/2025 09:55 AM
Firefox_Freeze.JPG (27.6 KB) Firefox_Freeze.JPG Stefan Bn, 02/21/2025 09:56 AM
Firefox_Debug.JPG (237 KB) Firefox_Debug.JPG Stefan Bn, 02/21/2025 09:56 AM

Related issues 1 (0 open1 closed)

Related to Bug #13685: StdGridLayoutImpl2.js: ensure resizing stretchable items does not loopClosedMatthias Van Ceulebroeck04/02/2025

Actions
Actions #1

Updated by Stefan Bn about 1 month ago

Update:
As of Wt 4.11.4 I don't see this behavior anymore! Resizing works without freezing the browser.

This issue can be closed. Thanks!

Actions #2

Updated by Matthias Van Ceulebroeck about 1 month ago

  • Status changed from New to Rejected

Hey Stefan,

thank you for the update (al the more with the positive news). I suspect this had to do with: #13685.
And after validation I can indeed say this has been resolved! By convention, we mark tickets for which we did no work (or in this case "direct" work), as Rejected.

Actions #3

Updated by Matthias Van Ceulebroeck about 1 month ago

  • Related to Bug #13685: StdGridLayoutImpl2.js: ensure resizing stretchable items does not loop added
Actions

Also available in: Atom PDF