调整 stacklayout scrollview nativescript

Resize stacklayout scrollview nativescript

您好,我正在尝试通过向上或向下滚动来更改堆栈布局的大小(高度),这可能吗?

是的,这是可能的。使用这种方式。

<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>