Flex 4 应用程序在浏览器中未显示 100%

发布于 2024-11-30 21:10:09 字数 1998 浏览 1 评论 0原文

    Hello I am having issue with showing everything from my flex application. It only shows around of the whole application.

    My application is as such:

    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
                   xmlns:s="library://ns.adobe.com/flex/spark" 
                   xmlns:mx="library://ns.adobe.com/flex/mx"        
                   width="100%" height="100%"
                   xmlns:local="*">

        <mx:ViewStack id="mainstack" width="100%" height="100%" >
            <mx:HBox id="Mod1" width="100%" height="100%" label="Mod1" horizontalAlign="center" verticalAlign="middle">
                <local:modloader url="Mod1.swf" id="mod1" />
            </mx:HBox>
            <mx:HBox id="Mod2" width="100%" height="100%" label="Mod2" horizontalAlign="center" verticalAlign="middle">
                <local:modloader url="Mod2.swf" id="mod3"  />
            </mx:HBox>
            <mx:HBox id="Mod3" width="100%" height="100%" label="Mod3" horizontalAlign="center" verticalAlign="middle">
                <local:modloader url="Mod2.swf" id="mod3"  />
            </mx:HBox>
        </mx:ViewStack>

    </s:Application>



    I also tried putting the following lines in initialize function of Application container but in vain:
            systemManager.stage.scaleMode=StageScaleMode.SHOW_ALL (or TO_FIT);
            systemManager.stage.align = StageAlign.TOP;
In fact when using SHOW.ALL..the whole application is as if squeeed to some 50% which makes everything small and this is not nice to view.

    I also modified the index.template.html and have put the width and height to 100% instead to explicit values.

    BUT my application only shows around 70%..the rest(at the bottom) go beyond the screen. (Just note that my screen resolution is 1366 x 768)*

Any bright idea why this does not work??
    Hello I am having issue with showing everything from my flex application. It only shows around of the whole application.

    My application is as such:

    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
                   xmlns:s="library://ns.adobe.com/flex/spark" 
                   xmlns:mx="library://ns.adobe.com/flex/mx"        
                   width="100%" height="100%"
                   xmlns:local="*">

        <mx:ViewStack id="mainstack" width="100%" height="100%" >
            <mx:HBox id="Mod1" width="100%" height="100%" label="Mod1" horizontalAlign="center" verticalAlign="middle">
                <local:modloader url="Mod1.swf" id="mod1" />
            </mx:HBox>
            <mx:HBox id="Mod2" width="100%" height="100%" label="Mod2" horizontalAlign="center" verticalAlign="middle">
                <local:modloader url="Mod2.swf" id="mod3"  />
            </mx:HBox>
            <mx:HBox id="Mod3" width="100%" height="100%" label="Mod3" horizontalAlign="center" verticalAlign="middle">
                <local:modloader url="Mod2.swf" id="mod3"  />
            </mx:HBox>
        </mx:ViewStack>

    </s:Application>



    I also tried putting the following lines in initialize function of Application container but in vain:
            systemManager.stage.scaleMode=StageScaleMode.SHOW_ALL (or TO_FIT);
            systemManager.stage.align = StageAlign.TOP;
In fact when using SHOW.ALL..the whole application is as if squeeed to some 50% which makes everything small and this is not nice to view.

    I also modified the index.template.html and have put the width and height to 100% instead to explicit values.

    BUT my application only shows around 70%..the rest(at the bottom) go beyond the screen. (Just note that my screen resolution is 1366 x 768)*

Any bright idea why this does not work??

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

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

发布评论

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

评论(1

与君绝 2024-12-07 21:10:09

尝试将应用程序的 minHeight 属性设置为 100,看看是否有帮助。

Try setting the minHeight property of your application to 100 and see if it helps.

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