diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/users/views/UsersWindow.mxml b/bigbluebutton-client/src/org/bigbluebutton/modules/users/views/UsersWindow.mxml
index 4fcd52e078..b1f632dacc 100755
--- a/bigbluebutton-client/src/org/bigbluebutton/modules/users/views/UsersWindow.mxml
+++ b/bigbluebutton-client/src/org/bigbluebutton/modules/users/views/UsersWindow.mxml
@@ -35,18 +35,15 @@
-
+
stage.stageHeight) {
- myMenuPos.y = this.y + this.height - (5*myMenu.rowHeight) + 7;
- }
-
- myMenu.show(myMenuPos.x, myMenuPos.y);
- myMenu.addEventListener(MenuEvent.ITEM_CLICK, menuClickHandler);
- myMenu.setFocus();
-
-
-
-
+ myMenu.variableRowHeight = true;
+ myMenu.show(this.x + settingsBtn.x + settingsBtn.width + 2, this.y + this.height);
+ myMenu.addEventListener(MenuEvent.ITEM_CLICK, menuClickHandler);
+ myMenu.setFocus();
}
-
+
private function menuClickHandler(e:MenuEvent):void {
e.item.callback();
}
@@ -346,6 +326,7 @@
var e:ChangeStatusEvent = new ChangeStatusEvent(UserManager.getInstance().getConference().getMyUserId(), status);
dispatchEvent(e);
}
+
private function lockSettings():void {
LogUtil.traceObject("Action: lockSettings");
@@ -448,6 +429,7 @@
keyCombos[modifier+(ResourceUtil.getInstance().getString('bbb.shortcutkey.users.kick') as String)] = KICK_USER;
keyCombos[modifier+(ResourceUtil.getInstance().getString('bbb.shortcutkey.users.mute') as String)] = MUTE_USER;
keyCombos[modifier+(ResourceUtil.getInstance().getString('bbb.shortcutkey.users.muteall') as String)] = MUTE_ALL_USER;
+ //TODO Include shortcuts to lock control
keyCombos[modifier+(ResourceUtil.getInstance().getString('bbb.shortcutkey.general.maximize') as String)] = ShortcutEvent.MAXIMIZE_USERS;
keyCombos[modifier+(ResourceUtil.getInstance().getString('bbb.shortcutkey.general.minimize') as String)] = ShortcutEvent.MINIMIZE_USERS;
}
@@ -545,59 +527,56 @@
focusManager.setFocus(usersGrid);
usersGrid.drawFocus(true);
}
-
+
private function remoteMuteAllButPres():void{
muteAlmostAll();
}
- public function ChangeStatusBtn(e:ChangeStatusBtnEvent):void{
+ public function onStatusChanged(e:ChangeStatusBtnEvent):void{
var icon:String = e.getStatusName();
- if(e.userId == UserManager.getInstance().getConference().getMyUserId()){
- switch(icon){
-
- case "CLEAR_STATUS":
- raiseHandBtn.setStyle("icon",images.hand_new);
- break;
- case "RAISE_HAND":
- raiseHandBtn.setStyle("icon",images.hand_new);
- break;
- case "AGREE":
- raiseHandBtn.setStyle("icon",images.agree);
- break;
- case "DISAGREE":
- raiseHandBtn.setStyle("icon",images.disagree);
- break;
- case "SPEAK_LOUDER":
- raiseHandBtn.setStyle("icon",images.speak_louder);
- break;
- case "SPEAK_LOWER":
- raiseHandBtn.setStyle("icon",images.speak_lower);
- break;
- case "SPEAK_FASTER":
- raiseHandBtn.setStyle("icon",images.speak_faster);
- break;
- case "SPEAK_SLOWER":
- raiseHandBtn.setStyle("icon",images.speak_slower);
- break;
- case "BE_RIGHT_BACK":
- raiseHandBtn.setStyle("icon",images.be_right_back);
- break;
- case "LAUGHTER":
- raiseHandBtn.setStyle("icon",images.laughter);
- break;
- case "SAD":
- raiseHandBtn.setStyle("icon",images.sad);
- break;
- default:
- raiseHandBtn.setStyle("icon",images.hand_new);
-
- }
+ if (e.userId == UserManager.getInstance().getConference().getMyUserId()) {
+ switch(icon) {
+ case "CLEAR_STATUS":
+ raiseHandBtn.setStyle("icon",images.hand_new);
+ break;
+ case "RAISE_HAND":
+ raiseHandBtn.setStyle("icon",images.hand_new);
+ break;
+ case "AGREE":
+ raiseHandBtn.setStyle("icon",images.agree);
+ break;
+ case "DISAGREE":
+ raiseHandBtn.setStyle("icon",images.disagree);
+ break;
+ case "SPEAK_LOUDER":
+ raiseHandBtn.setStyle("icon",images.speak_louder);
+ break;
+ case "SPEAK_LOWER":
+ raiseHandBtn.setStyle("icon",images.speak_lower);
+ break;
+ case "SPEAK_FASTER":
+ raiseHandBtn.setStyle("icon",images.speak_faster);
+ break;
+ case "SPEAK_SLOWER":
+ raiseHandBtn.setStyle("icon",images.speak_slower);
+ break;
+ case "BE_RIGHT_BACK":
+ raiseHandBtn.setStyle("icon",images.be_right_back);
+ break;
+ case "LAUGHTER":
+ raiseHandBtn.setStyle("icon",images.laughter);
+ break;
+ case "SAD":
+ raiseHandBtn.setStyle("icon",images.sad);
+ break;
+ default:
+ raiseHandBtn.setStyle("icon",images.hand_new);
+ break;
+ }
}
-
- }
+ }
-
]]>