I am using the same strategy as the Flex Explorer Sample provided
with Flex. I have a left Tree and a right Panel. See:
http://132.156.178.59:8101/samples/explorer2/explorer.mxml
When I am trying to maximize the browser the right Panel refuse to
expand as well and I scrollbars appears.
Anyone of you got an idea on what could be the problem?
Thanks
Code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
verticalGap="0"
backgroundColor="#7D8FA8"
initialize="initApp()"
xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns="*"
pageTitle="G�nie EE" width="100%" height="100%">
<mx:XML id="treeModel" source="topics.xml"/>
<mx:Script source="ActionScripts/coeur.as"/>
<!-- Styles for the individual sample demos -->
<mx:Style>
Application {
marginLeft: 8px;
marginRight: 8px;
marginTop: 8px;
marginBottom: 8px;
horizontalAlign: "left";
background-color: #FFFFFF;
}
</mx:Style>
<mx:Script>
<![CDATA[
[Embed(symbol="cursorStretch")]
var cursorStretch:String;
var selectedUrl;
var loadable:String="false";
var existHelperTab=false;
function initApp() {
selectFirstItem();
}
function selectFirstItem() {
topicTree.setIsOpen(topicTree.getTreeNodeAt(0),true);
var firstTopicNode=topicTree.getNodeDisplayedAt(1);
topicTree.selectedNode=firstTopicNode;
selectionChanged(firstTopicNode);
}
function selectionChanged(node) {
var url=node.attributes.url;
if (url!=null) {
this.loadable = node.attributes.loader;
this.selectedUrl=url;
topics.send();
}
sourceTab.title=node.attributes.label;
}
function getLoaderUrl(url) {
if (loadable=="true") {
return url+".swf";
} else {
return "blank.mxml.swf";
}
}
]]>
</mx:Script>
<mx:HTTPService id="topics" serviceName="FormatSourceService"
resultFormat="text" showBusyCursor="true">
<mx:request>
<url>{selectedUrl}</url>
</mx:request>
</mx:HTTPService>
<!-- <mx:Canvas width="100%" backgroundColor="#FFFFFF">
<mx:HBox width="100%">
<mx:Image source="@Embed('images/NRCAN_F.png')"/>
<mx:Spacer width="100%"/>
<mx:Image source="@Embed('images/CANADA.png')"/>
</mx:HBox>
</mx:Canvas> -->
<mx:VBox width="100%" height="100%">
<mx:LinkBar id="mainMenu" width="100%" borderStyle="solid"
click="getPage(event)" maxHeight="30" marginBottom="0" marginTop="0"
buttonColor="#FFFFFF" color="#FFFFFF" disabledColor="#FFFFFF">
<mx:dataProvider>
<mx:Array>
<mx:String>Accueil</mx:String>
<mx:String>Mon compte</mx:String>
<mx:String>Nouveau projet</mx:String>
<mx:String>Mes projets</mx:String>
<mx:String>Outils</mx:String>
<mx:String>English</mx:String>
<mx:String>Sortie</mx:String>
</mx:Array>
</mx:dataProvider>
</mx:LinkBar>
<mx:HBox width="100%" verticalAlign="top">
<mx:Label text="Nom du b�timent: " color="#FFFFFF"
fontSize="14"/>
<mx:Label text="Centre Lajeunesse" color="#FF9900"
fontSize="14" fontWeight="bold" />
<mx:Spacer width="100"/>
<mx:Label text="Vocation:" color="#FFFFFF"
fontSize="14"/>
<mx:Label text="Immeuble � bureaux" color="#FF9900"
fontSize="14" fontWeight="bold" />
<mx:Spacer width="100"/>
<mx:Label text="Nature du b�timent:" color="#FFFFFF"
fontSize="14"/>
<mx:Label text="Neuf" color="#FF9900" fontSize="14"
fontWeight="bold"/>
</mx:HBox>
<mx:HBox>
<mx:Button label="Sauvegarder" cornerRadius="0"
height="20"/>
<mx:Button id="imperial" label="Utiliser unit�s IP"
cornerRadius="0" height="20"/>
<mx:Button id="metrique" label="Calculer"
cornerRadius="0" height="20"/>
</mx:HBox>
<mx:HDividedBox width="100%" height="100%">
<mx:Tree id="topicTree" height="100%" width="200"
change="selectionChanged(event.target.selectedItem)"
dataProvider="{treeModel}" openDuration="0"/>
<mx:Panel id="sourceTab" width="800" height="100%"
horizontalAlign="center" verticalAlign="middle">
<mx:Loader id="loader" contentPath="{getLoaderUrl
(selectedUrl)}" scaleContent="false" showBusyCursor="true"
width="100%" height="100%"/>
</mx:Panel>
</mx:HDividedBox>
<mx:ControlBar horizontalAlign="right" width="100%"
height="30" verticalAlign="middle" marginTop="3" marginBottom="3">
<mx:Button label="Pr�c�dent"/>
<mx:Button label="Suivant"/>
</mx:ControlBar>
</mx:VBox>
</mx:Application>
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/