Actions
Bug #9265
closedWBorderLayout documentation error
Start date:
10/28/2021
Due date:
% Done:
100%
Estimated time:
Description
The documentation of WBorderLayout contains the following example:
auto w = addWidget(std::make_unique<Wt::WContainerWidget>());
auto layout = std::make_unique<Wt::WBorderLayout>();
layout->addWidget(std::make_unique<Wt::WText>("West-side is best"), Wt::LayoutPosition::West);
layout->addWidget(std::make_unique<Wt::WText>("East-side is best"), Wt::LayoutPosition::East);
layout->addWidget(std::move(contents), Wt::LayoutPosition::Center);
// use layout but do not justify vertically
w->setLayout(std::move(layout), Wt::AlignmentFlag::Top | Wt::AlignmentFlag::Justify);
However I can't find a 'setLayout' member for WContainerWidget that takes alignment flags as second argument. Nor can my compiler.
At the moment I have the problem that the height of the widget in the East position limits the height of the widget in the Center position.
If there is a possibility to avoid that it would be nice if the WBorderLayout documentation includes that.
Updated by Roel Standaert about 3 years ago
- Target version set to 4.7.0
Oh yeah, we deprecated that in Wt 3 and removed it in Wt 4.
Updated by Roel Standaert almost 3 years ago
- Target version changed from 4.7.0 to 4.8.0
Updated by Roel Standaert over 2 years ago
- Status changed from New to InProgress
- Assignee set to Roel Standaert
Updated by Roel Standaert over 2 years ago
- Status changed from InProgress to Review
- Assignee deleted (
Roel Standaert)
Updated by Roel Standaert over 2 years ago
- Status changed from Review to Implemented @Emweb
Updated by Roel Standaert over 2 years ago
- Status changed from Implemented @Emweb to Resolved
Updated by Roel Standaert over 2 years ago
- Target version changed from 4.8.0 to 4.7.3
Updated by Roel Standaert over 2 years ago
- Status changed from Resolved to Closed
Actions