fixed issue 1964 making meeting name label truncate

This commit is contained in:
Chad Pilkey 2015-07-09 18:45:19 -04:00
parent 82c5b251d4
commit 0132f62f65
3 changed files with 6 additions and 31 deletions

View File

@ -54,6 +54,7 @@ ToolTip {
fontWeight: bold;
fontSize: 15;
fontFamily: Arial;
textAlign: center;
color: #e1e2e5;
}

View File

@ -152,7 +152,6 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
[Bindable] private var toolbarPaddingTop:Number = 4;
[Bindable] private var showFooterOpt:Boolean = true;
[Bindable] private var footerHeight:Number = 24;
[Bindable] private var globalHeight:Number = 0;
[Bindable] private var isTunneling:Boolean = false;
@ -183,22 +182,6 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
protected function initializeShell():void {
globalDispatcher = new Dispatcher();
systemManager.addEventListener(Event.RESIZE, updateCopyrightLabelDimensions);
copyrightLabel2.addEventListener(FlexEvent.UPDATE_COMPLETE, updateCopyrightLabelDimensions);
updateCopyrightLabelDimensions();
}
private function updateCopyrightLabelDimensions(e:Event = null):void {
var screenRect:Rectangle = systemManager.screen;
if (spacer.width == 0) {
copyrightLabel2.width += (screenRect.width - controlBar.width);
} else {
copyrightLabel2.width += Math.min(spacer.width, copyrightLabel2.measuredWidth - copyrightLabel2.width);
}
globalHeight = screenRect.height;
}
protected function initFullScreen():void {
@ -671,7 +654,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
verticalScrollPolicy="off"
effectsLib="{flexlib.mdi.effects.effectsLib.MDIVistaEffects}"
width="100%"
height="{globalHeight - footerHeight - toolbarHeight - 12}">
height="100%">
<views:LoadingBar id="progressBar" horizontalCenter="0" verticalCenter="0" width="50%" />
<views:BrandingLogo x="{this.width - 300}" y="{this.height - 300}" />
</views:MainCanvas>
@ -681,8 +664,9 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
htmlText="{ResourceUtil.getInstance().getString('bbb.mainshell.copyrightLabel2',[appVersion])}"
link="onFooterLinkClicked(event)"
id="copyrightLabel2" truncateToFit="true"
width="100%" minWidth="1"
selectable="true" paddingRight="10"/>
<mx:Spacer width="100%" id="spacer" />
<mx:Label
id="lblWebRTC"
text="{'[ '+ResourceUtil.getInstance().getString('bbb.mainshell.notification.webrtc')+' ]'}"

View File

@ -101,15 +101,6 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
}
private function onCreationComplete():void {
if (this.width < 800) {
meetingNameLbl.visible = false;
shortcutKeysBtn.visible = false;
helpBtn.visible = false;
muteMeBtn.visible = false;
meetingNameLbl.width = 0;
shortcutKeysBtn.width = 0;
helpBtn.width = 0;
}
}
private function checkAccessiblity(e:TimerEvent):void {
@ -158,6 +149,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
var meetingTitle:String = BBB.initUserConfigManager().getMeetingTitle();
if (meetingTitle != null) {
meetingNameLbl.text = meetingTitle;
meetingNameLbl.toolTip = meetingTitle;
}
}
}
@ -355,9 +347,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
<views:RecordButton id="recordBtn" tabIndex="{baseIndex+numButtons+10}" />
<mx:VRule strokeWidth="2" height="100%" visible="{muteMeBtn.visible}" includeInLayout="{muteMeBtn.includeInLayout}"/>
<views:MuteMeButton id="muteMeBtn" height="20" tabIndex="{baseIndex+numButtons+11}"/>
<mx:Spacer width="50%"/>
<mx:Label id="meetingNameLbl" styleName="meetingNameLabelStyle" />
<mx:Spacer width="50%"/>
<mx:Label id="meetingNameLbl" width="100%" minWidth="1" styleName="meetingNameLabelStyle" />
<!--
<mx:Button label="DISCONNECT!" click="BBB.initConnectionManager().forceClose()" height="22" toolTip="Click to simulate disconnection" />