【问题标题】:NativeScript Pull to Refresh page behind ActionBar after refresh | nativescript-pulltorefreshNativeScript Pull to Refresh page after ActionBar after refresh | nativescript-pulltorefresh
【发布时间】:2018-11-12 13:35:46
【问题描述】:

我在 nativescript angular 应用程序中使用 nativescript-pulltorefresh 插件。正如您在屏幕截图中看到的,该页面显示属性。当从滚动视图拉动完成刷新时,视图将在操作栏后面向上移动。页面底部甚至还有原始内容所在的空白处。

这是页面标记。正如其他一些人在相关帖子中所建议的那样,我尝试将PullToRefreshScrollView 包装在AbsoluteLayoutGridLayout 中。结果是一样的。

...
</ActionBar>

<PullToRefresh (refresh)="refreshList($event)" style="background- color: #F5F7FA;">
  <ScrollView>
    <GridLayout rows="auto, *" width="100%">
    ...
    </GridLayout>
  </ScrollView>
</PullToRefresh>

我愿意接受所有建议。

谢谢!

【问题讨论】:

    标签: angular plugins nativescript


    【解决方案1】:

    幸运的是,查看我的问题中的屏幕截图为我提供了问题的线索。刷新导致 ScrollView 中的初始视图调整大小。通过将 iosOverflowSafeArea="false" 添加到标签中,它可以防止这种情况发生并且视图按预期执行。

    【讨论】:

    • 谢谢。也解决了我的问题。对于其他任何人,这是您添加 iosOverflowSafeArea 的地方:` `
    猜你喜欢
    • 2020-10-11
    • 2019-11-20
    • 2020-04-19
    • 2013-01-14
    • 2015-08-07
    • 2011-06-02
    • 2016-03-23
    • 1970-01-01
    • 2014-05-11
    相关资源
    最近更新 更多