始终调整 viewStack 的大小

发布于 2024-08-26 19:07:16 字数 355 浏览 6 评论 0原文

我面临一个奇怪的问题:我使用的 viewStack 的属性 resizeToContent 设置为 true。当我选择一个高于 viewStack 的子级时,它会正确调整大小,但是当我选择另一个较小的子级时,viewStack 不会调整大小! 我想要的是我的 viewStack 每次都能获得 selectedChildheight

不过,Adobe 文档说:

如果为 true,ViewStack 容器会自动调整其当前子容器的大小。

有什么想法吗???

多谢

I'm facing one weird problem : I'm using a viewStack which have is property resizeToContent set to true. When I'm selecting a child higher than the viewStack, it's correctly resized, but when I'm selecting another child which is smaller, the viewStack isn't resized !!!
What I want is that my viewStack get the height of the selectedChild each time.

though, the Adobe doc say :

If true, the ViewStack container automatically resizes to the size of its current child.

Have any idea ???

thanks a lot

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浪漫之都 2024-09-02 19:07:16

所以...,

由于我还没有找到任何解决方案,所以我采取了一种解决方法:每次更改所选视图时,我都会为 viewStack 的高度设置默认值...
它不是很干净,但它可以工作,

但如果有人找到更好的解决方案,我会很高兴:)

So...,

as I haven't found any solution, I take a work around : I'm setting a default value for the height of my viewStack each time I'm changing the view seleted....
It's not very clean, but it's work

but if someone found a better soluce, I'll be happy :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文