You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2020/03/04 22:42:47 UTC
[royale-asjs] branch develop updated: jewel-textprompt: fix swf
again 2
This is an automated email from the ASF dual-hosted git repository.
carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new 1a132b2 jewel-textprompt: fix swf again 2
1a132b2 is described below
commit 1a132b20b686a33d511180c4e658ee6edebbdc6c
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Wed Mar 4 23:42:38 2020 +0100
jewel-textprompt: fix swf again 2
---
.../apache/royale/jewel/beads/controls/textinput/TextPrompt.as | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controls/textinput/TextPrompt.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controls/textinput/TextPrompt.as
index 11aef00..58865ff 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controls/textinput/TextPrompt.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controls/textinput/TextPrompt.as
@@ -161,20 +161,20 @@ package org.apache.royale.jewel.beads.controls.textinput
{
// see what the model currently has to determine if the prompt should be
// displayed or not.
- var model:Object = _strand.model;
+ var model:Object = UIBase(_strand).model;
if (model.text != null && model.text.length > 0 ) {
- if (promptAdded) _strand.removeChild(promptField);
+ if (promptAdded) UIBase(_strand).removeChild(promptField);
promptAdded = false;
}
else {
- if (!promptAdded) _strand.addChild(promptField);
+ if (!promptAdded) UIBase(_strand).addChild(promptField);
promptField.text = prompt;
promptAdded = true;
promptField.x = 2;
promptField.y = 2;
- promptField.width = _strand.width-5;
- promptField.height = _strand.height-4;
+ promptField.width = UIBase(_strand).width-5;
+ promptField.height = UIBase(_strand).height-4;
}
}
}