Revert "Delay centering popups as FileUploadWindow cannot be directly centered."

This reverts commit acddb48545.
This commit is contained in:
Richard Alam 2017-11-16 08:21:18 -08:00
parent a92d4dbd76
commit 90b49bb12e
3 changed files with 2 additions and 4 deletions

View File

@ -23,7 +23,6 @@ package org.bigbluebutton.core {
import flash.ui.Keyboard; import flash.ui.Keyboard;
import flash.utils.Dictionary; import flash.utils.Dictionary;
import flash.utils.getQualifiedClassName; import flash.utils.getQualifiedClassName;
import flash.utils.setTimeout;
import mx.containers.Panel; import mx.containers.Panel;
import mx.controls.Alert; import mx.controls.Alert;
@ -103,7 +102,7 @@ package org.bigbluebutton.core {
private static function addPopUpToStage(parent:DisplayObject, className:Class, modal:Boolean = false, center:Boolean = true):IFlexDisplayObject { private static function addPopUpToStage(parent:DisplayObject, className:Class, modal:Boolean = false, center:Boolean = true):IFlexDisplayObject {
var popUp:IFlexDisplayObject = PopUpManager.createPopUp(parent, className, modal); var popUp:IFlexDisplayObject = PopUpManager.createPopUp(parent, className, modal);
if (center) { if (center) {
setTimeout(function () : void {PopUpManager.centerPopUp(popUp)}, 50); PopUpManager.centerPopUp(popUp)
} }
popUpDict[getQualifiedClassName(className)] = popUp; popUpDict[getQualifiedClassName(className)] = popUp;

View File

@ -303,7 +303,6 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
if (toolbarOptions.confirmLogout) { if (toolbarOptions.confirmLogout) {
var logoutWindow:LogoutWindow = PopUpUtil.createModalPopUp(FlexGlobals.topLevelApplication as DisplayObject, LogoutWindow, false) as LogoutWindow; var logoutWindow:LogoutWindow = PopUpUtil.createModalPopUp(FlexGlobals.topLevelApplication as DisplayObject, LogoutWindow, false) as LogoutWindow;
// Needs to be improved in case of RTL layout
PopUpUtil.lockPosition(logoutWindow, function():Point { PopUpUtil.lockPosition(logoutWindow, function():Point {
return new Point(width - logoutWindow.width - 5, btnLogout.y + btnLogout.height + 5) return new Point(width - logoutWindow.width - 5, btnLogout.y + btnLogout.height + 5)
}); });

View File

@ -69,7 +69,7 @@ package org.bigbluebutton.modules.present.managers
} }
public function handleOpenUploadWindow(e:UploadEvent):void{ public function handleOpenUploadWindow(e:UploadEvent):void{
var uploadWindow : FileUploadWindow = PopUpUtil.createModalPopUp(FlexGlobals.topLevelApplication as DisplayObject, FileUploadWindow, true) as FileUploadWindow; var uploadWindow : FileUploadWindow = PopUpUtil.createModalPopUp(FlexGlobals.topLevelApplication as DisplayObject, FileUploadWindow, false) as FileUploadWindow;
if (uploadWindow) { if (uploadWindow) {
uploadWindow.maxFileSize = e.maxFileSize; uploadWindow.maxFileSize = e.maxFileSize;
} }