Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement new polling popup #5340

Merged
merged 9 commits into from
May 1, 2018

Conversation

GhaziTriki
Copy link
Member

No description provided.

Copy link
Contributor

@capilkey capilkey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple minor things that need to be changed or need input.

color : PropertyReference("bbbBlack");
modalTransparencyBlur : 0;
modalTransparency : 0.5;
modalTransparencyColor : black;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do these modalTransparency properties need to be global? Do they actually affect different classes or only one class?

Copy link
Member Author

@GhaziTriki GhaziTriki Apr 17, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

modalTransparency is going to be used by the PopUpManager, for that reason it goes global.

fontSize : 22;
}

main|MobilePopUp {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two "main|MobilePopUp" definitions should be merged together. Change needs to be applied to all the other profiles also.

}

/**
* Override this method in subclasses to be notified of rotation changes
*/
public function rotationHandler(rotation:String):void {
protected function onOrientationChange(event:Event):void {
invalidateDisplayList();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you invalidate the display list on rotation? The updateDisplayList() function should already be getting called because the View size changes when the stage size changes.

}

protected function onAddedToStage(event:Event):void {
stage.addEventListener(StageOrientationEvent.ORIENTATION_CHANGE, onOrientationChange, false, 0, true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not a fan of adding these temporary listeners in every View. Is there an advantage to doing in this way instead of having the listener added at the Application level and having it exist for the life of the application?

_pollButton.visible = false;
_pollButton.percentWidth = 100;
_pollButton = new Button();
_pollButton.visible = _pollButton.includeInLayout = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MainView uses BasicLayout and I don't think setting includeInLayout applies with that layout.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If includeInLayout is set to false, parent component will not include this child size to determine its own size. Here a BasicLayout works like a canvas.

}

public function showPollingButton(visible:Boolean):void {
_pollButton.visible = _pollButton.includeInLayout = visible;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MainView uses BasicLayout and I don't think setting includeInLayout applies with that layout.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as previous remark.

public class UserInactivityView extends NoTabView
{
public var okButton:Button;
public class UserInactivityView extends MobilePopUp {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this class should be renamed to UserInactivityPopUp as its base class is no longer a View.

}
}

private function onStageOrientation(event:StageOrientationEvent):void {
view.addButtons(meetingData.polls.getCurrentPoll());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you re-add the poll options on orientation change?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The window size changes depending on the orientation, we need to add buttons back if the popup goes larger. The addButtons removes buttons then add them back.


view.removeAllElements();
view.addButtons(meetingData.polls.getCurrentPoll());
view.stage.addEventListener(StageOrientationEvent.ORIENTATION_CHANGE, onStageOrientation);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to remove this listener in the destroy()

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@capilkey capilkey merged commit 7c49c02 into bigbluebutton:master May 1, 2018
@GhaziTriki GhaziTriki deleted the mobile-ui-updates branch January 28, 2019 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants