Skip to content
Snippets Groups Projects
Commit 897bb88c authored by Ghazi Triki's avatar Ghazi Triki
Browse files

Base PollButtons on TileGroup instead of HGroup.

parent 032abb85
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,7 @@ package org.bigbluebutton.air.main.views {
_webcamDock.bottom = _menuButtons.height;
_pollButton.bottom = _menuButtons.height + getStyle("pollPadding");;
_pollButton.bottom = getStyle("pollPadding");;
}
}
}
package org.bigbluebutton.air.poll.views {
import spark.components.Button;
import spark.components.HGroup;
import spark.components.TileGroup;
import spark.layouts.ColumnAlign;
import org.bigbluebutton.air.poll.models.PollVO;
public class PollButtons extends HGroup {
public class PollButtons extends TileGroup {
public function PollButtons() {
columnAlign = ColumnAlign.JUSTIFY_USING_GAP;
}
public function addButtons(poll:PollVO):void {
var voteBtn:Button;
var numBtns:int = poll.answers.length;
......@@ -12,7 +17,6 @@ package org.bigbluebutton.air.poll.views {
for (var i:int = 0; i < numBtns; i++) {
voteBtn = new Button();
voteBtn.percentWidth = btnWidth;
voteBtn.height = 70;
voteBtn.styleName = "voteButton";
// To be localised
voteBtn.label = poll.answers[i].key;
......@@ -24,7 +28,6 @@ package org.bigbluebutton.air.poll.views {
override protected function updateDisplayList(w:Number, h:Number):void {
super.updateDisplayList(w, h);
this.gap = getStyle("gap");
this.padding = getStyle("padding");
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment