- show toolbar by default

This commit is contained in:
Richard Alam 2011-08-03 19:22:59 +00:00
parent f379c07120
commit cb1292b558
2 changed files with 9 additions and 3 deletions

View File

@ -285,7 +285,7 @@
]]>
</mx:Script>
<views:MainToolbar id="toolbar" dock="true" width="100%" height="30" visible="false" verticalAlign="middle" layoutOptions="{layoutOptions}"/>
<views:MainToolbar id="toolbar" dock="true" width="100%" height="30" visible="true" verticalAlign="middle" layoutOptions="{layoutOptions}"/>
<views:MainCanvas id="mdiCanvas" horizontalScrollPolicy="off" verticalScrollPolicy="off" effectsLib="{flexlib.mdi.effects.effectsLib.MDIVistaEffects}" width="100%" height="100%">
<views:LoadingBar id="progressBar" x="{this.width/2 - progressBar.width/2}" y="{this.height/2 - progressBar.height/2}" width="{this.width/2}" />
<views:BrandingLogo x="{this.width - 300}" y="{this.height - 300}" />

View File

@ -61,8 +61,11 @@
public var layoutOptions:LayoutOptions = new LayoutOptions();
public function loggedIn(name:String, room:String, role:String):void{
if (layoutOptions.showToolbar)
if (layoutOptions.showToolbar) {
this.visible = false;
} else {
this.visible = true;
}
}
public function addButton(name:String):Button{
@ -90,8 +93,11 @@
}
private function hideToolbar(e:ConnectionFailedEvent):void{
if (layoutOptions.showToolbar)
if (layoutOptions.showToolbar) {
this.visible = false;
} else {
this.visible = true;
}
}
private function handleAddToolbarButtonEvent(event:ToolbarButtonEvent):void {