Actions
Bug #14302
closed
SB
RM
[Wt 4.12.2] Regression in WHBoxLayout::setResizable and WTreeView triggers endless width/resize loop
Bug #14302:
[Wt 4.12.2] Regression in WHBoxLayout::setResizable and WTreeView triggers endless width/resize loop
Start date:
02/04/2026
Due date:
% Done:
0%
Estimated time:
Description
Hello Wt-Team,
I do experience serious issues in the latest version Wt 4.12.2, seen both in Firefox and Edge alike.
- Creating a flex-layout
WHBoxLayout::setResizableleads to an immediate crash.
Calling setResizable() while constructing the page (before it is actually shown/rendered) consistently aborts withWt: fatal error: Cannot update widget without id. This suggests setResizable() triggers a client-side/DOM update too early (before widget IDs exist). This might be due to an initialization / first-render ordering issue. See also debug-log backtrace inFlexLayoutImpl.Cattached.
Maybe due to:
https://redmine.emweb.be/issues/13670
- A
WTreeViewadded as a stretch item inside aWHBoxLayoutcauses the horizontal size to grow indefinitely and triggers continuous Wt round-trips (non-converging layout/resize loop). ReplacingWTreeViewwith a plainWContainerWidgetworks fine, and constraining the tree’s width (e.g. max-width) stops the loop. This suggests an interaction between WTreeView’s intrinsic sizing and the flex/box layout sizing algorithm.
Maybe similar:
https://redmine.emweb.be/issues/1409
I'm happy that I could extract the relevant parts into the sample code attached that allows to reproduce the issues.
Best,
Stefan
Files
SB Updated by Stefan Bn 7 months ago
And there is more :-(
- Assining a
WHBoxLayouttoWContainerWidget* Wt::WDialog::titleBar()leads to a crash when the dialog is shown. This used to work flawless in earlier versions.
auto dlg = this->addChild(std::make_unique<WDialog>());
auto titleHLayout = dlg->titleBar()->setLayout(std::make_unique<WHBoxLayout>()); // Crash
Debugger breaks at:
RM Updated by Romain Mardulyn 7 months ago
- Status changed from New to InProgress
- Assignee set to Romain Mardulyn
- Target version set to 4.12.3
RM Updated by Romain Mardulyn 7 months ago
- Related to Bug #14314: WDialog not taking into account title bar being cleared added
RM Updated by Romain Mardulyn 7 months ago
- Related to Bug #11875: WBoxLayout incorrectly calculates the size of scrollable widgets added
RM Updated by Romain Mardulyn 7 months ago
- Status changed from InProgress to Review
- Assignee deleted (
Romain Mardulyn)
MV Updated by Matthias Van Ceulebroeck 7 months ago
- Assignee set to Matthias Van Ceulebroeck
RM Updated by Romain Mardulyn 7 months ago
- Status changed from Review to Implemented @Emweb
- Assignee changed from Matthias Van Ceulebroeck to Romain Mardulyn
RM Updated by Romain Mardulyn 7 months ago
- Status changed from Implemented @Emweb to Closed
Actions