You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Alex Harui <ah...@adobe.com> on 2016/11/28 16:38:19 UTC

Re: git commit: [flex-asjs] [refs/heads/develop] - FLEX-35187 - explicitly set default border to none, so viewports can ignore non-existent borders.

Are you sure this did not impact any examples?

-Alex

On 11/28/16, 6:45 AM, "yishayw@apache.org" <yi...@apache.org> wrote:

>Repository: flex-asjs
>Updated Branches:
>  refs/heads/develop 1ae995db3 -> d159d7ed1
>
>
>FLEX-35187 - explicitly set default border to none, so viewports can
>ignore non-existent borders.
>
>
>Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
>Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/d159d7ed
>Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/d159d7ed
>Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/d159d7ed
>
>Branch: refs/heads/develop
>Commit: d159d7ed1758d0eb631eea272ce0164a36f4dda9
>Parents: 1ae995d
>Author: yishayw <yi...@hotmail.com>
>Authored: Mon Nov 28 16:44:57 2016 +0200
>Committer: yishayw <yi...@hotmail.com>
>Committed: Mon Nov 28 16:44:57 2016 +0200
>
>----------------------------------------------------------------------
> frameworks/projects/HTML/src/main/resources/defaults.css | 1 +
> 1 file changed, 1 insertion(+)
>----------------------------------------------------------------------
>
>
>http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d159d7ed/frameworks/
>projects/HTML/src/main/resources/defaults.css
>----------------------------------------------------------------------
>diff --git a/frameworks/projects/HTML/src/main/resources/defaults.css
>b/frameworks/projects/HTML/src/main/resources/defaults.css
>index 9c017e2..a725c0b 100644
>--- a/frameworks/projects/HTML/src/main/resources/defaults.css
>+++ b/frameworks/projects/HTML/src/main/resources/defaults.css
>@@ -26,6 +26,7 @@
>     font-family: "Arial";
>     font-size: 12px;
> 	border-width: 1px;
>+	border-style: none;
> }
> 
> .flexjs *, . flexjs *:before, . flexjs *:after {
>


RE: git commit: [flex-asjs] [refs/heads/develop] - FLEX-35187 - explicitly set default border to none, so viewports can ignore non-existent borders.

Posted by Yishay Weiss <yi...@hotmail.com>.
‘none’ is the default value of border-style, so it shouldn’t affect rendering.



The problem was in CSSContainerUtils.getBorderMetrics():



var borderStyle:Object = ValuesManager.valuesImpl.getValue(object, "border-style");



borderStyle was evaluated in JS to undefined and the condition that follows:



        if (borderStyle == "none")



was not met.





Anyway, I just built FlexJSStore and the layout looks ok to me. I had to manually copy the assets folder to see the pngs.









From: Alex Harui<ma...@adobe.com>
Sent: Monday, November 28, 2016 6:38 PM
To: dev@flex.apache.org<ma...@flex.apache.org>; commits@flex.apache.org<ma...@flex.apache.org>
Subject: Re: git commit: [flex-asjs] [refs/heads/develop] - FLEX-35187 - explicitly set default border to none, so viewports can ignore non-existent borders.



Are you sure this did not impact any examples?

-Alex

On 11/28/16, 6:45 AM, "yishayw@apache.org" <yi...@apache.org> wrote:

>Repository: flex-asjs
>Updated Branches:
>  refs/heads/develop 1ae995db3 -> d159d7ed1
>
>
>FLEX-35187 - explicitly set default border to none, so viewports can
>ignore non-existent borders.
>
>
>Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
>Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/d159d7ed
>Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/d159d7ed
>Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/d159d7ed
>
>Branch: refs/heads/develop
>Commit: d159d7ed1758d0eb631eea272ce0164a36f4dda9
>Parents: 1ae995d
>Author: yishayw <yi...@hotmail.com>
>Authored: Mon Nov 28 16:44:57 2016 +0200
>Committer: yishayw <yi...@hotmail.com>
>Committed: Mon Nov 28 16:44:57 2016 +0200
>
>----------------------------------------------------------------------
> frameworks/projects/HTML/src/main/resources/defaults.css | 1 +
> 1 file changed, 1 insertion(+)
>----------------------------------------------------------------------
>
>
>http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d159d7ed/frameworks/
>projects/HTML/src/main/resources/defaults.css
>----------------------------------------------------------------------
>diff --git a/frameworks/projects/HTML/src/main/resources/defaults.css
>b/frameworks/projects/HTML/src/main/resources/defaults.css
>index 9c017e2..a725c0b 100644
>--- a/frameworks/projects/HTML/src/main/resources/defaults.css
>+++ b/frameworks/projects/HTML/src/main/resources/defaults.css
>@@ -26,6 +26,7 @@
>     font-family: "Arial";
>     font-size: 12px;
>        border-width: 1px;
>+      border-style: none;
> }
>
> .flexjs *, . flexjs *:before, . flexjs *:after {
>


RE: git commit: [flex-asjs] [refs/heads/develop] - FLEX-35187 - explicitly set default border to none, so viewports can ignore non-existent borders.

Posted by Yishay Weiss <yi...@hotmail.com>.
‘none’ is the default value of border-style, so it shouldn’t affect rendering.



The problem was in CSSContainerUtils.getBorderMetrics():



var borderStyle:Object = ValuesManager.valuesImpl.getValue(object, "border-style");



borderStyle was evaluated in JS to undefined and the condition that follows:



        if (borderStyle == "none")



was not met.





Anyway, I just built FlexJSStore and the layout looks ok to me. I had to manually copy the assets folder to see the pngs.









From: Alex Harui<ma...@adobe.com>
Sent: Monday, November 28, 2016 6:38 PM
To: dev@flex.apache.org<ma...@flex.apache.org>; commits@flex.apache.org<ma...@flex.apache.org>
Subject: Re: git commit: [flex-asjs] [refs/heads/develop] - FLEX-35187 - explicitly set default border to none, so viewports can ignore non-existent borders.



Are you sure this did not impact any examples?

-Alex

On 11/28/16, 6:45 AM, "yishayw@apache.org" <yi...@apache.org> wrote:

>Repository: flex-asjs
>Updated Branches:
>  refs/heads/develop 1ae995db3 -> d159d7ed1
>
>
>FLEX-35187 - explicitly set default border to none, so viewports can
>ignore non-existent borders.
>
>
>Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
>Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/d159d7ed
>Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/d159d7ed
>Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/d159d7ed
>
>Branch: refs/heads/develop
>Commit: d159d7ed1758d0eb631eea272ce0164a36f4dda9
>Parents: 1ae995d
>Author: yishayw <yi...@hotmail.com>
>Authored: Mon Nov 28 16:44:57 2016 +0200
>Committer: yishayw <yi...@hotmail.com>
>Committed: Mon Nov 28 16:44:57 2016 +0200
>
>----------------------------------------------------------------------
> frameworks/projects/HTML/src/main/resources/defaults.css | 1 +
> 1 file changed, 1 insertion(+)
>----------------------------------------------------------------------
>
>
>http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d159d7ed/frameworks/
>projects/HTML/src/main/resources/defaults.css
>----------------------------------------------------------------------
>diff --git a/frameworks/projects/HTML/src/main/resources/defaults.css
>b/frameworks/projects/HTML/src/main/resources/defaults.css
>index 9c017e2..a725c0b 100644
>--- a/frameworks/projects/HTML/src/main/resources/defaults.css
>+++ b/frameworks/projects/HTML/src/main/resources/defaults.css
>@@ -26,6 +26,7 @@
>     font-family: "Arial";
>     font-size: 12px;
>        border-width: 1px;
>+      border-style: none;
> }
>
> .flexjs *, . flexjs *:before, . flexjs *:after {
>


Re: git commit: [flex-asjs] [refs/heads/develop] - FLEX-35187 - explicitly set default border to none, so viewports can ignore non-existent borders.

Posted by yishayw <yi...@hotmail.com>.
Duplicate.



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/Re-git-commit-flex-asjs-refs-heads-develop-FLEX-35187-explicitly-set-default-border-to-none-so-viewp-tp56763p56811.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.