最大化Panel时,如何让Panel内的地图同步增长?

发布于 2024-08-24 19:52:23 字数 219 浏览 4 评论 0原文

我在面板中有一张地图。最大化面板时,地图保持较小的尺寸。如何使地图与面板同步增长?

最大化面板时,我添加了调整大小效果。当地图范围发生变化时,如何在地图上应用调整大小效果?

在我看来,我应该在最大化面板时调度extentChange事件。

有人能给我一些提示吗?

非常感谢!

(我在弹性学习方面还很年轻)

Best,Shuo

I have a map in a panel.When maximizing the panel,the map remain the smaller size.How to make the map growing synchronizely with the Panel?

When maximizing the Panel,I added Resize Effects.How to apply Resize effects on the Map when the extent of the map changing?

It seems to me that I should dispatch extentChange event when maximizing the panel.

Could anyone give me some hint?

Much Thanks!

(I'm very young in flex learning)

Best,Shuo

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

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

发布评论

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

评论(1

笛声青案梦长安 2024-08-31 19:52:23

如果您的内部地图/面板具有百分比宽度/高度,它应该自动调整大小。确保它看起来像这样:

<mx:Panel id="outer" width="100%" height="100%">
    <!-- percent sizes on map (panel is just for example) -->
    <mx:Panel id="inner" width="100%" height="100%"/>
</mx:Panel>

...不是这个(明确的):

<mx:Panel id="inner" width="400" height="500"/>

...或这个(测量的):

<mx:Panel id="inner"/>

让我知道这是否有效。

最好的,

If your inner map/panel has percent widths/heights, it should resize with it automatically. Make sure it looks like this:

<mx:Panel id="outer" width="100%" height="100%">
    <!-- percent sizes on map (panel is just for example) -->
    <mx:Panel id="inner" width="100%" height="100%"/>
</mx:Panel>

... not this (explicit):

<mx:Panel id="inner" width="400" height="500"/>

... or this (measured):

<mx:Panel id="inner"/>

Let me know if that works.

Best,
Lance

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