Bug #9265
WBorderLayout documentation error
Start date:
10/28/2021
Due date:
% Done:
0%
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 7 months ago
- Target version set to 4.7.0
Oh yeah, we deprecated that in Wt 3 and removed it in Wt 4.