Actions
Bug #9590
openPanel header looses "panel-heading" class if titleBarWidget is created manually
Status:
New
Priority:
Low
Assignee:
-
Target version:
-
Start date:
01/07/2022
Due date:
% Done:
0%
Estimated time:
0:30 h
Description
This class can be set manually again, but creates a Design mismatch that has to be looked for and found.
Creating Panel Header manually:
auto panel = std::make_unique<Wt::WPanel>();
panel->setTitleBar(true);
auto txt_Title = panel->titleBarWidget()->addNew<Wt::WText>();
auto btn_TitleButton = panel->titleBarWidget()->addNew<Wt::WPushButton>("Click me!");
// needs style class setting
panel->titleBarWidget()->setStyleClass("panel-heading");
Without setting the style class, the panel is just as high as the Text.
It seems there is no margin top and bottom anymore.
Did only check in Bootstrap3Theme
Updated by Roel Standaert over 2 years ago
- Related to Improvements #10586: Revise WPanel added
Actions