Actions
Bug #11882
closedBootstrap theme breaks layout of WGroupBox
Start date:
08/17/2023
Due date:
% Done:
100%
Estimated time:
Description
The problem occurs when a layout of WGroupBox is a WGridLayout and has a nested layout. Widgets are positioned outside the GroupBox and are invisible.
Here is an example:
Wt::WApplication::instance()->setTheme(std::make_shared<Wt::WBootstrap5Theme>()); // comment out to avoid the problem
auto layout = std::make_unique<Wt::WVBoxLayout>();
auto group = layout->addWidget(std::make_unique<Wt::WGroupBox>("Group"));
auto groupLayout = std::make_unique<Wt::WGridLayout>();
groupLayout->addWidget(std::make_unique<Wt::WLabel>("Label"), 0, 0);
auto buttonsLayout = std::make_unique<Wt::WVBoxLayout>();
buttonsLayout->addWidget(std::make_unique<Wt::WPushButton>("Button"));
groupLayout->addLayout(std::move(buttonsLayout), 0, 1);
group->setLayout(std::move(groupLayout));
auto dialog = std::make_unique<Wt::WDialog>("Dialog");
dialog->contents()->setLayout(std::move(layout));
// Without resizing, the layout isn't right even with the default theme, but widgets are at least visible
dialog->resize(500, 500);
dialog->exec();
Updated by Matthias Van Ceulebroeck over 1 year ago
- Target version set to 4.10.2
Updated by Matthias Van Ceulebroeck over 1 year ago
- Status changed from New to InProgress
- Assignee set to Matthias Van Ceulebroeck
Updated by Matthias Van Ceulebroeck over 1 year ago
- Status changed from InProgress to Review
- Assignee deleted (
Matthias Van Ceulebroeck)
Updated by Matthias Van Ceulebroeck over 1 year ago
- Assignee set to Marnik Roosen
Updated by Matthias Van Ceulebroeck over 1 year ago
- Status changed from Review to Resolved
- Assignee changed from Marnik Roosen to Matthias Van Ceulebroeck
Updated by Matthias Van Ceulebroeck about 1 year ago
- Status changed from Resolved to Implemented @Emweb
- % Done changed from 0 to 100
Updated by Matthias Van Ceulebroeck about 1 year ago
- Status changed from Implemented @Emweb to Closed
Actions