Revert "Delay centering popups as FileUploadWindow cannot be directly centered."
This reverts commit acddb48545
.
This commit is contained in:
parent
a92d4dbd76
commit
90b49bb12e
@ -23,7 +23,6 @@ package org.bigbluebutton.core {
|
||||
import flash.ui.Keyboard;
|
||||
import flash.utils.Dictionary;
|
||||
import flash.utils.getQualifiedClassName;
|
||||
import flash.utils.setTimeout;
|
||||
|
||||
import mx.containers.Panel;
|
||||
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 {
|
||||
var popUp:IFlexDisplayObject = PopUpManager.createPopUp(parent, className, modal);
|
||||
if (center) {
|
||||
setTimeout(function () : void {PopUpManager.centerPopUp(popUp)}, 50);
|
||||
PopUpManager.centerPopUp(popUp)
|
||||
}
|
||||
popUpDict[getQualifiedClassName(className)] = popUp;
|
||||
|
||||
|
@ -303,7 +303,6 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
if (toolbarOptions.confirmLogout) {
|
||||
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 {
|
||||
return new Point(width - logoutWindow.width - 5, btnLogout.y + btnLogout.height + 5)
|
||||
});
|
||||
|
@ -69,7 +69,7 @@ package org.bigbluebutton.modules.present.managers
|
||||
}
|
||||
|
||||
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) {
|
||||
uploadWindow.maxFileSize = e.maxFileSize;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user