Repository: flex-asjs Updated Branches: refs/heads/develop 40b604b0e -> 25195f5fd
Fix for bug FLEX-35250. Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/25195f5f Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/25195f5f Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/25195f5f Branch: refs/heads/develop Commit: 25195f5fd85d8d54a5f7741161cb28aa7b4a2396 Parents: 40b604b Author: Peter Ent <[email protected]> Authored: Wed Jan 25 17:00:40 2017 -0500 Committer: Peter Ent <[email protected]> Committed: Wed Jan 25 17:00:40 2017 -0500 ---------------------------------------------------------------------- .../flex/org/apache/flex/html/beads/layouts/HorizontalLayout.as | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/25195f5f/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/layouts/HorizontalLayout.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/layouts/HorizontalLayout.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/layouts/HorizontalLayout.as index 4348666..b316e26 100644 --- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/layouts/HorizontalLayout.as +++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/layouts/HorizontalLayout.as @@ -82,7 +82,10 @@ package org.apache.flex.html.beads.layouts host = value as ILayoutChild; COMPILE::JS { - ((value as IUIBase).element as HTMLElement).style.display = 'block'; + var base:IUIBase = value as IUIBase; + if (base.element.style.display !== "none") { + base.element.style.display = "block"; + } } }
