0
我創建的頁面在FLEX的前面,但我有滾輪(頁面內容),並從IE /火狐底部狀態欄問題。它們很容易相互重疊(前面的狀態欄 - 隱藏頁面內容) - 是否有任何方法可以讀取瀏覽器的這些元素的高度(相應地更改「paddingbottom」)? (我知道禁用它們是出於安全原因禁止的)。火狐/ IE狀態欄是在FLEX頁
代碼:
<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>
我刪除了大部分的東西從例子。我試圖改變應用程序和Scroller擡高到precent之一,但它沒有幫助。
您可以在這裏看到的頁面例如:http://cerber.cs.put.poznan.pl/~inf84884/
我發佈了它,它有點混亂 - 但我只對應用程序和滾動組件感興趣。我可以手動設置填充底部,但它會在Chrome瀏覽器中很糟糕(沒有任何狀態欄)。 – Thomas 2011-01-12 15:21:47