Project

General

Profile

Actions

Bug #9265

closed

WBorderLayout documentation error

Added by Winfried Dobbe over 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Roel Standaert
Target version:
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.

Actions #1

Updated by Roel Standaert over 2 years ago

  • Target version set to 4.7.0

Oh yeah, we deprecated that in Wt 3 and removed it in Wt 4.

Actions #2

Updated by Roel Standaert about 2 years ago

  • Target version changed from 4.7.0 to 4.8.0
Actions #3

Updated by Roel Standaert almost 2 years ago

  • Status changed from New to InProgress
  • Assignee set to Roel Standaert
Actions #4

Updated by Roel Standaert almost 2 years ago

  • Status changed from InProgress to Review
  • Assignee deleted (Roel Standaert)
Actions #5

Updated by Roel Standaert almost 2 years ago

  • Status changed from Review to Implemented @Emweb
Actions #6

Updated by Roel Standaert almost 2 years ago

  • % Done changed from 0 to 100
Actions #7

Updated by Roel Standaert almost 2 years ago

  • Status changed from Implemented @Emweb to Resolved
Actions #8

Updated by Roel Standaert almost 2 years ago

  • Assignee set to Roel Standaert
Actions #9

Updated by Roel Standaert almost 2 years ago

  • Target version changed from 4.8.0 to 4.7.3
Actions #10

Updated by Roel Standaert almost 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF