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/09/05 07:40:01 UTC
[6/7] git commit: [flex-asjs] [refs/heads/develop] - tune panel layout
tune panel layout
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/22b5da8a
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/22b5da8a
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/22b5da8a
Branch: refs/heads/develop
Commit: 22b5da8ab7a9efd0821b47f6ad23d442e2717471
Parents: 98b8258
Author: Alex Harui <ah...@apache.org>
Authored: Fri Sep 4 22:31:05 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Sep 4 22:31:05 2015 -0700
----------------------------------------------------------------------
.../HTML/js/src/org/apache/flex/html/beads/PanelView.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/22b5da8a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/PanelView.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/PanelView.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/PanelView.js
index 4ee79ed..f4132ef 100644
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/PanelView.js
+++ b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/PanelView.js
@@ -112,13 +112,13 @@ org.apache.flex.html.beads.PanelView.
var host = this._strand;
vm.borderMetrics = org.apache.flex.utils.CSSContainerUtils.getBorderMetrics(host);
- this.titleBar.x = vm.borderMetrics.left;
- this.titleBar.y = vm.borderMetrics.top;
+ this.titleBar.x = 0;
+ this.titleBar.y = 0;
if (!host.isWidthSizedToContent())
this.titleBar.width = host.width - vm.borderMetrics.left - vm.borderMetrics.right;
vm.chromeMetrics = this.getChromeMetrics();
- this.viewport.setPosition(vm.borderMetrics.left + vm.chromeMetrics.left,
- vm.borderMetrics.top + vm.chromeMetrics.top);
+ this.viewport.setPosition(vm.chromeMetrics.left,
+ vm.chromeMetrics.top);
this.viewport.layoutViewportBeforeContentLayout(
!host.isWidthSizedToContent() ?
host.width - vm.borderMetrics.left - vm.borderMetrics.right -