Skip to content

Commit

Permalink
fix presentation rotate and postition problem
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryDeng committed Jul 18, 2014
1 parent 03afd2b commit 9489bf0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
3 changes: 2 additions & 1 deletion src/org/bigbluebutton/view/navigation/PagesNavigatorView.as
Expand Up @@ -2,9 +2,10 @@ package org.bigbluebutton.view.navigation
{
import flash.events.MouseEvent;

import spark.components.ViewNavigator;
import spark.transitions.ViewTransitionBase;

public class PagesNavigatorView extends PagesNavigatorViewBase implements IPagesNavigatorView
public class PagesNavigatorView extends ViewNavigator implements IPagesNavigatorView
{

override protected function childrenCreated():void
Expand Down

This file was deleted.

Expand Up @@ -25,7 +25,6 @@ package org.bigbluebutton.view.navigation.pages.presentation
override protected function childrenCreated():void
{
super.childrenCreated();
rotationHandler(FlexGlobals.topLevelApplication.currentOrientation);
}

public function onClick(e:MouseEvent):void
Expand Down Expand Up @@ -56,21 +55,22 @@ package org.bigbluebutton.view.navigation.pages.presentation
override public function rotationHandler(rotation:String):void {
switch (rotation) {
case StageOrientation.ROTATED_LEFT:
content.rotation = -90;
slide.rotation = -90;
break;
case StageOrientation.ROTATED_RIGHT:
content.rotation = 90;
slide.rotation = 90;
break;
case StageOrientation.UPSIDE_DOWN:
content.rotation = 180;
slide.rotation = 180;
break;
case StageOrientation.DEFAULT:
case StageOrientation.UNKNOWN:
default:
content.rotation = 0;
}
slide.rotation = 0;
}
}


public function dispose():void
{

Expand Down

0 comments on commit 9489bf0

Please sign in to comment.