Project

General

Profile

Actions

Bug #9590

open

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

Added by Christian Meyer almost 3 years ago.

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


Related issues 1 (1 open0 closed)

Related to Improvements #10586: Revise WPanelNew07/01/2022

Actions
Actions #1

Updated by Roel Standaert over 2 years ago

Actions

Also available in: Atom PDF