Project

General

Profile

Actions

Bug #13554

open

Resizable WBoxLayout causes browser window to freeze

Added by Stefan Bn 1 day ago.

Status:
New
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

No data to display

Actions

Also available in: Atom PDF