Bug #11248
Regression in Wt 4.9.0: Bootstrap 5: setWidth cuts off contents and resizable dialogs don't resize
Start date:
01/16/2023
Due date:
% Done:
100%
Estimated time:
Description
This was first reported as a comment on issue #11233: https://redmine.emweb.be/issues/11233#note-3
Note: this issue only appears when WBootstrap5Theme
is used.
When a dialog with particularly wide contents is created, and a width is set, then the contents may overflow and be hidden:
dialog->setWidth(800);
dialog->contents()->addNew<Wt::WText>(
"This is really long text. This is really long text. This is really long text. "
"This is really long text. This is really long text. This is really long text. "
"This is really long text. This is really long text. This is really long text. "
"This is really long text. This is really long text. This is really long text. "
"This is really long text."
);
Additionally, resizing does not work (resize icon is not shown, and we can't drag the corner of the dialog).
See attached screenshot.
Files
Related issues
Updated by Roel Standaert 15 days ago
- Related to Bug #11233: Regression in Wt 4.9.0: dialogs don't close after accept() or reject() with Bootstrap 5 theme added
Updated by Roel Standaert 15 days ago
- File dialog.cpp dialog.cpp added
I'm attaching a small test program that reproduces the issue.
Updated by Roel Standaert 15 days ago
- Status changed from InProgress to Review
- Assignee deleted (
Roel Standaert)
Updated by Roel Standaert 14 days ago
- Status changed from Review to Implemented @Emweb
- Assignee changed from Matthias Van Ceulebroeck to Roel Standaert
- % Done changed from 0 to 100