diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/whiteboard/views/WhiteboardTextToolbar.mxml b/bigbluebutton-client/src/org/bigbluebutton/modules/whiteboard/views/WhiteboardTextToolbar.mxml
index 2bce625270..239555a03f 100755
--- a/bigbluebutton-client/src/org/bigbluebutton/modules/whiteboard/views/WhiteboardTextToolbar.mxml
+++ b/bigbluebutton-client/src/org/bigbluebutton/modules/whiteboard/views/WhiteboardTextToolbar.mxml
@@ -21,9 +21,8 @@ with BigBlueButton; if not, see .
-->
+ xmlns:mate="http://mate.asfusion.com/" visible="false"
+ xmlns:views="org.bigbluebutton.modules.whiteboard.views.*">
@@ -54,36 +53,9 @@ with BigBlueButton; if not, see .
private var currentlySelectedTextObject:TextObject = null;
private var containerToOverlay:MDIWindow;
- private var normalAlpha:Number = 0.55;
- private var focusedAlpha:Number = 1.0;
private var hasFocus:Boolean;
[Bindable] private var fontSizes:Array = ["12", "14", "16", "18", "22", "24", "32", "36"];
- private function onCreationComplete():void {
- this.alpha = normalAlpha;
- this.addEventListener(MouseEvent.ROLL_OVER, makeFocused);
- this.addEventListener(MouseEvent.ROLL_OUT, makeDim);
-
-
- /* WARNING: enabling the following code caused some nasty issues with the whiteboard
- It is kept here for reference
- */
- /*this.textColor = ctextpik.selectedColor = 0x000000;
- this.bgColor = cbackpik.selectedColor = 0x000000;
- this.backgroundVisible = btnToggleBackground.selected = false;
- this.textSizeMenu.label = "14";
- this.textSize = Number(textSizeMenu.label);*/
- }
-
- /* Following two methods are used for aesthetics when mouse hovers over TextToolbar and when it hovers out of it */
- private function makeDim(event:MouseEvent):void {
- this.alpha = normalAlpha;
- }
-
- private function makeFocused(event:MouseEvent):void {
- this.alpha = focusedAlpha;
- }
-
private function onFontSizeChange():void {
setTextSize(Number(textSizeMenu.selectedItem));
}
@@ -125,12 +97,19 @@ with BigBlueButton; if not, see .
private function disableTextToolbar(e:Event=null):void{
this.visible = false;
+ closeMenus()
}
private function closeToolbar(e:StopWhiteboardModuleEvent):void{
+ closeMenus();
parent.removeChild(this);
}
+ private function closeMenus() : void {
+ ctextpik.close();
+ textSizeMenu.close();
+ }
+
public function syncPropsWith(tobj:TextObject):void {
currentlySelectedTextObject = tobj;
@@ -172,6 +151,7 @@ with BigBlueButton; if not, see .
public function adjustForZoom(x:Number, y:Number):void {
repositionToolbar();
}
+
]]>