Skip to content

DockLayout out of screen children not visible any more in 5.0 #1594

Open
@jrz

Description

@jrz

Just upgraded to 5.0 final.

My screen has several layouts stacked, and labels inside, but the labels that start ofscreen (scrollable) never become visible. They are available in the elements navigator in chrome. Also, if I add labels before, I can clearly see that the labels which are offscreen do not get rendered.

Is there any "smart" detection of wether something should be visible implemented in NS?

My screen is roughly:

<GridLayout>
  <ScrollView>
    <StackLayout orientation="vertical">
      <StackLayout *ngFor>
        <Label text="these remain visible" />
        <StackLayout orientation="vertical">
          <StackLayout orientation="vertical" *ngFor>
            <Label text="these also remain visible" />
            <StackLayout *ngIf>
              <DockLayout stretchLastChild="true">
                <Label dock="left" text="not visible when starting offscreen" />
                <Label dock="right" text="not visible when starting offscreen" />
                <Label text="not visible when starting offscreen" />
              </DockLayout>
              <Slider /> <!-- is visible -->

The problem seems to be the docklayout.
I've replaced it with FlexboxLayout, and it's fine.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions