You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2015/01/10 08:46:09 UTC
[03/10] git commit: [flex-asjs] [refs/heads/develop] - handle
non-resizing
handle non-resizing
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/bf1faefb
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/bf1faefb
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/bf1faefb
Branch: refs/heads/develop
Commit: bf1faefb420f3364b909f7df3363847def364d9e
Parents: d698204
Author: Alex Harui <ah...@apache.org>
Authored: Fri Jan 9 13:48:55 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Jan 9 23:45:57 2015 -0800
----------------------------------------------------------------------
.../flex/html/beads/layouts/NonVirtualBasicLayout.js | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/bf1faefb/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js
index 814394e..56b6f39 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js
@@ -61,9 +61,14 @@ org.apache.flex.html.beads.layouts.NonVirtualBasicLayout.
goog.bind(this.changeHandler, this));
this.strand_.addEventListener('sizeChanged',
goog.bind(this.sizeChangeHandler, this));
- if (!isNaN(this.strand_.get_explicitWidth()) &&
- !isNaN(this.strand_.get_explicitHeight()))
- this.addOtherListeners();
+
+ // in JS, we won't always get size/width/height change
+ // events because we let the browser layout based on
+ // %'s and don't convert to pixels, so listen to the
+ // other events anyway.
+ /* if (!isNaN(this.strand_.get_explicitWidth()) &&
+ !isNaN(this.strand_.get_explicitHeight()))*/
+ this.addOtherListeners();
}
}
};