Wuilmer Medrano
Wuilmer Medrano

Reputation: 209

Resize stacklayout scrollview nativescript

Hello I am trying to make a stacklayout change its size (heigth) by scrolling up or down is it possible?

Upvotes: 0

Views: 130

Answers (1)

FrontEnd-er
FrontEnd-er

Reputation: 663

Yes it is possible. use this way.

<DockLayout stretchLastChild="false" class="page-background">
  <GridLayout rows="30*, 70*">
    <GridLayout row="0" borderBottomWidth="3" borderColor="#af152d" rows="auto" class="logo-container">
        <GridLayout rows="*" row="0" class="image-container"></GridLayout>
    </GridLayout>
    <GridLayout row="1" rows="*" orientation="vertical">            
        <ScrollView row="0" orientation="vertical">
            <StackLayout verticalAlignment="top">
            </StackLayout>
        </ScrollView>
    </GridLayout>
  </GridLayout>
</DockLayout>

Upvotes: 1

Related Questions