Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的 flex 应用程序中有一个 HBox。问题是,当 HBox 内的东西太多时,应用程序底部会出现滚动条。我怎样才能让它出现在 HBox 中,所以滚动条只滚动 HBox 内的东西而不是整个应用程序?
尝试在 HBox 周围创建一个画布。如果把Canvas的宽度声明为100%,应该就是舞台的宽度,当里面的HBox变宽时,应该会出现一个滚动条。
<Application xmlns="http://www.adobe.com/2006/mxml" horizontalScrollPolicy="off"> <HBox width="100%"> ...
我相信这应该有效。