【问题标题】:firefox/IE statusbar are in front of FLEX pagefirefox/IE 状态栏在 FLEX 页面前面
【发布时间】:2011-01-12 14:38:55
【问题描述】:

我在 FLEX 中创建了页面,但滚动条(页面内容)和 IE/firefox 的底部状态栏存在问题。它们很容易相互重叠(状态栏在前面 - 隐藏页面的内容) - 有没有办法读取这些元素的高度,与浏览器无关(相应地更改“paddingbottom”)? (我知道出于安全原因禁止禁用它们)。

代码:

<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" minWidth="800" minHeight="600" 
           xmlns:components="components.*"
           xmlns:men="components.pages.admin_subpage.*"
           backgroundColor="#000000"
           creationComplete="init()"
           applicationComplete="application1_applicationCompleteHandler(event)"
           skinClass="BackgroundColor"
           >
<s:Scroller id="scroll" left="2" right="2" top="2" bottom="2"> 
    <s:VGroup id="tresc"
              textAlign="center" horizontalAlign="center" gap="10" horizontalCenter="0" bottom="0" paddingBottom="10" top="20" width="100%" height="100%"
              gap.schowaneLogowanie="0">
        <s:HGroup width="100%" paddingLeft="20" paddingTop="20" horizontalAlign="center" textAlign="center" verticalAlign="middle" width.schowaneLogowanie="91%" gap.schowaneLogowanie="0" paddingLeft.schowaneLogowanie="0" paddingRight.wysunieteLogowanie="15">
            <s:Group width="100%">
                <components:logo id="logo"  width="100%"  width.schowaneLogowanie="100%"/>
                <s:HGroup width="100%" verticalAlign.schowaneLogowanie="middle" height.schowaneLogowanie="122" gap="0">

                    <mx:Spacer width="83%"/>
                    <s:TextInput height="30" contentBackgroundAlpha="0.3" width="12%" id="searchText" keyDown="hgr_keyDownHandler(event)" text="Search..." borderVisible.schowaneLogowanie="false"/>
                    <s:Button height="32" alpha="0.8" width="5%" click="button1_clickHandler(event)" label="Go"/>
                </s:HGroup>
            </s:Group>
        </s:HGroup>
        <men:menuTest id="menu" width="100%" textAlign="center"/> //Whole content of page is set here
        <components:stopka id="stopka"  bottom="5" left="5" right="5" />
        <!--<components:menu currentState="wysunietaTresc" textAlign="center" width="100%"/>-->
    </s:VGroup>
</s:Scroller> 
</s:Application>

我删除了示例中的大部分内容。我曾尝试将应用程序和滚动条高度更改为最近的一个,但它没有帮助。

您可以在此处查看页面示例:http://cerber.cs.put.poznan.pl/~inf84884/

【问题讨论】:

    标签: apache-flex internet-explorer firefox statusbar


    【解决方案1】:

    您是否尝试使用应用程序的高度作为百分比? 这将在 flex 应用程序中放置一个滚动条,您还可以通过向下滚动来查看整个内容。

    您愿意分享您的代码吗? 另外,再多一些细节就好了。

    【讨论】:

    • 我发布了它,它有点乱 - 但我只对应用程序和滚动组件感兴趣。我可以手动设置填充底部,但它在 Chrome 浏览器中看起来很糟糕(没有任何状态栏)。
    猜你喜欢
    • 2011-11-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-09-04
    • 2019-07-15
    • 1970-01-01
    • 1970-01-01
    • 2010-09-29
    相关资源
    最近更新 更多