You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by pe...@apache.org on 2015/09/08 17:00:11 UTC

git commit: [flex-asjs] [refs/heads/develop] - The viewport for ButtonBar fills the entire space.

Repository: flex-asjs
Updated Branches:
  refs/heads/develop 91e3f12c8 -> 2c53b26a0


The viewport for ButtonBar fills the entire space.


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/2c53b26a
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/2c53b26a
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/2c53b26a

Branch: refs/heads/develop
Commit: 2c53b26a0009170c95d05140cef8d181bb8363f7
Parents: 91e3f12
Author: Peter Ent <pe...@apache.org>
Authored: Tue Sep 8 10:59:58 2015 -0400
Committer: Peter Ent <pe...@apache.org>
Committed: Tue Sep 8 10:59:58 2015 -0400

----------------------------------------------------------------------
 .../js/src/org/apache/flex/html/beads/ButtonBarView.js   | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2c53b26a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ButtonBarView.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ButtonBarView.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ButtonBarView.js
index 1585cbb..52ed8f1 100644
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ButtonBarView.js
+++ b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ButtonBarView.js
@@ -35,6 +35,17 @@ goog.inherits(
 
 
 /**
+ * @override
+ */
+org.apache.flex.html.beads.ButtonBarView.
+    prototype.layoutViewBeforeContentLayout = function() {
+  var host = this._strand;
+  this.viewport.setPosition(0, 0);
+  this.viewport.layoutViewportBeforeContentLayout(host.width, host.height);
+};
+
+
+/**
  * Metadata
  *
  * @type {Object.<string, Array.<Object>>}