flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject git commit: [flex-asjs] [refs/heads/develop] - Oops. Did not realize layoutViewBeforeContentLayout had a side effect of setting border metrics in the viewport model.
Date Tue, 08 Sep 2015 15:21:55 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/develop 2c53b26a0 -> d07a374b7


Oops. Did not realize layoutViewBeforeContentLayout had a side effect of setting border metrics
in the viewport model.


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

Branch: refs/heads/develop
Commit: d07a374b7b3abd435d6f286c0ade1b52163d9632
Parents: 2c53b26
Author: Peter Ent <pent@apache.org>
Authored: Tue Sep 8 11:21:53 2015 -0400
Committer: Peter Ent <pent@apache.org>
Committed: Tue Sep 8 11:21:53 2015 -0400

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


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d07a374b/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 52ed8f1..b65965f 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
@@ -40,6 +40,9 @@ goog.inherits(
 org.apache.flex.html.beads.ButtonBarView.
     prototype.layoutViewBeforeContentLayout = function() {
   var host = this._strand;
+  var vm = this.viewportModel;
+  vm.borderMetrics = org.apache.flex.utils.CSSContainerUtils.getBorderMetrics(host);
+  vm.chromeMetrics = this.getChromeMetrics();
   this.viewport.setPosition(0, 0);
   this.viewport.layoutViewportBeforeContentLayout(host.width, host.height);
 };


Mime
View raw message