You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by yi...@apache.org on 2022/11/30 06:06:43 UTC
[royale-asjs] branch develop updated: Emulation - make CP popup disappear after color selection
This is an automated email from the ASF dual-hosted git repository.
yishayw 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 d8ef783ff0 Emulation - make CP popup disappear after color selection
d8ef783ff0 is described below
commit d8ef783ff0397baf2053c7cd9e8986c3f7b276f9
Author: Yishay Weiss <yi...@hotmail.com>
AuthorDate: Wed Nov 30 08:06:33 2022 +0200
Emulation - make CP popup disappear after color selection
---
.../MXRoyale/src/main/royale/mx/controls/beads/ColorPickerView.as | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/ColorPickerView.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/ColorPickerView.as
index 0445c37f0f..5f9c8808a0 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/ColorPickerView.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/ColorPickerView.as
@@ -188,7 +188,7 @@ package mx.controls.beads
public function set popUpVisible(value:Boolean):void
{
if (value && !list.visible) {
- var model:IColorModel = getModelByType(_strand,IColorModel) as IColorModel;
+ var model:IColorModel = getModelByType(_strand,IColorModel) as IColorModel;
(list as IColorPickerPopUp).model = model;
list.visible = true;
@@ -227,6 +227,7 @@ package mx.controls.beads
colorChangeAction();
//'change' events should only be from User-initiated changes
if (!programmaticChange) (_strand as IEventDispatcher).dispatchEvent(new ColorPickerEvent("change"));
+ popUpVisible = false;
}
/**