#15854: BCardLayout: all items are visible at start
--------------------------------+------------------------------
Reporter: X512 | Owner: nobody
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: Kits/Interface Kit | Version: R1/Development
Keywords: | Blocked By:
Blocking: | Has a Patch: 0
Platform: All |
--------------------------------+------------------------------
This is hrev54024.
When using following code to build layout, all card items are visible
simultaneously at start:
{{{
#!c++
BLayoutBuilder::Group<>(this, B_VERTICAL, 0)
.AddCards()
.GetLayout(&fCardLayout)
.AddGroup(B_VERTICAL, 0)
.AddGroup(B_HORIZONTAL, 0)
.Add(fWizardView, 0)
.Add(fIntroContainerView)
.End()
.End()
.AddGroup(B_VERTICAL, 0)
.Add(fHeaderContainerView)
.Add(new BSeparatorView(B_HORIZONTAL))
.AddGroup(B_VERTICAL, B_USE_DEFAULT_SPACING)
.SetInsets(B_USE_DEFAULT_SPACING)
.Add(fLicenseCaption1View, 0)
.Add(new BScrollView("scrollview",
fLicenseView, 0, true, true, B_PLAIN_BORDER))
.Add(fLicenseCaption2View, 0)
.End()
.End()
.End()
.End()
}}}
Following workaround fixes problem:
{{{
#!c++
fCardLayout->SetVisibleItem(1);
fCardLayout->SetVisibleItem(0);
}}}
--
Ticket URL: <https://dev.haiku-os.org/ticket/15854>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.