Commit 317f6e90 authored by Daniel Rossi's avatar Daniel Rossi
Browse files

- #36 adjust the menu during fullscreen events as this is prevented once added to the stage.

parent 41b2034a
......@@ -3,6 +3,7 @@ Version history:
3.2.11
------
- #7 check for stage availability before positioning the dock or position once stage is available when resetting menu items.
- #36 adjust the menu during fullscreen events as this is prevented once added to the stage.
3.2.10
------
......
......@@ -9,23 +9,23 @@
* http://www.opensource.org/licenses/mit-license.php
*/
package org.flowplayer.menu.ui {
import flash.display.DisplayObject;
import flash.display.DisplayObject;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.filters.DropShadowFilter;
import org.flowplayer.config.Config;
//import org.flowplayer.config.Config;
import org.flowplayer.config.ConfigParser;
import org.flowplayer.controller.ResourceLoader;
import org.flowplayer.flow_internal;
import org.flowplayer.menu.*;
import org.flowplayer.model.DisplayPluginModel;
import org.flowplayer.model.DisplayProperties;
//import org.flowplayer.model.DisplayProperties;
import org.flowplayer.model.Plugin;
import org.flowplayer.model.PluginEvent;
//import org.flowplayer.model.PluginEvent;
import org.flowplayer.model.PluginModel;
import org.flowplayer.model.PlayerEvent;
import org.flowplayer.ui.containers.WidgetContainer;
import org.flowplayer.ui.containers.WidgetContainerEvent;
import org.flowplayer.ui.dock.Dock;
......@@ -167,6 +167,16 @@ package org.flowplayer.menu.ui {
_model.dispatchOnLoad();
}
//#36 adjust the menu during fullscreen events as this is prevented once added to the stage.
_player.onFullscreen(function(event:PlayerEvent):void {
adjustDockPosition();
});
_player.onFullscreenExit(function(event:PlayerEvent):void {
adjustDockPosition();
});
createMenuButton(player);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment