Navigation Bar - Layout
Added by Peter Tagwercher almost 4 years ago
I am playing with the layout of WNavigationBar a little (not sure if this is the last word on my layout). Anyway, I have come to this:
auto p1 = Wt::cpp14::make_uniqueWt::WText("Benutzer");
navigation->addWidget(std::move(p1)), Wt::AlignmentFlag::Right | Wt::AlignmentFlag::Bottom);
auto p2 = Wt::cpp14::make_uniqueWt::WText("Benutzer");
navigation->addWidget(std::move(p2)), Wt::AlignmentFlag::Right | Wt::AlignmentFlag::Bottom);
I didn't want the text "top-aligned", therefore I added the bottom alignment. Right adjustment then doesn't work anymore on WTextl.
Seems that the only supported alignment of WText in a WNavigationBar is Wt::AlignmentFlag::Right or Wt::AlignmentFlag::Left.
So how do I get this text bottom aligned?
TIA,
Best Regards,
Peter
screenshot.png (4.09 KB) screenshot.png |
Replies (1)
RE: Navigation Bar - Layout - Added by Peter Tagwercher almost 4 years ago
May I refresh this point on how I can have the alignment of those texts changed so they appear on the same y-location as the Menuitems?
Thanks in advance.
Peter