Repository: flex-asjs Updated Branches: refs/heads/develop b22fcdbaf -> ab9b29c8e
Forgot to reset the default width. Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/ab9b29c8 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/ab9b29c8 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/ab9b29c8 Branch: refs/heads/develop Commit: ab9b29c8ed40a32d5e7500687993199c8ba5caae Parents: b22fcdb Author: Peter Ent <[email protected]> Authored: Tue Jan 24 15:01:22 2017 -0500 Committer: Peter Ent <[email protected]> Committed: Tue Jan 24 15:01:22 2017 -0500 ---------------------------------------------------------------------- .../projects/HTML/src/main/flex/org/apache/flex/html/Alert.as | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/ab9b29c8/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Alert.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Alert.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Alert.as index 82665d5..a145ae4 100644 --- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Alert.as +++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Alert.as @@ -176,7 +176,7 @@ package org.apache.flex.html * @playerversion AIR 2.6 * @productversion FlexJS 0.0 */ - static public function show( text:String, parent:Object, title:String="", flags:uint=Alert.OK ) : void + static public function show( text:String, parent:Object, title:String="", flags:uint=Alert.OK ) : Alert { var alert:Alert = new Alert(); alert.message = text; @@ -190,7 +190,10 @@ package org.apache.flex.html alert.positioner.style.margin = 'auto'; alert.positioner.style.left = "50%"; alert.positioner.style.top = "50%"; + alert.positioner.style.width = "200px"; } + + return alert; } /**
