Project

General

Profile

Bug #9590

Panel header looses "panel-heading" class if titleBarWidget is created manually

Added by Christian Meyer 9 days ago.

Status:
New
Priority:
Low
Assignee:
-
Target version:
-
Start date:
01/07/2022
Due date:
% Done:

0%

Estimated time:
0.50 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

No data to display

Also available in: Atom PDF