开发者

Hbox horizontalScrollPosition not working

开发者 https://www.devze.com 2022-12-16 16:02 出处:网络
I am applying hb.horizontalScrollPosition = value and it does not work with horizonalS开发者_Python百科crollPolicy = on/off. Is there any other way to achieve this?

I am applying hb.horizontalScrollPosition = value and it does not work with horizonalS开发者_Python百科crollPolicy = on/off. Is there any other way to achieve this?

Thanks.


When exactly are you setting the scroll position relative to loading the content? Perhaps the content isn't measured yet. Try using callLater to wait a frame before setting the scroll position.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号