- show toolbar by default
This commit is contained in:
parent
f379c07120
commit
cb1292b558
@ -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}" />
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user