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 5b70097203 Emulation - Fix input from text yielding wrong colors in CP
     new 7cd6836b7f Merge branch 'develop' of 
https://github.com/apache/royale-asjs into develop
5b70097203 is described below

commit 5b700972037095b3fde5904f9616dd185e5ee6dd
Author: Yishay Weiss <yishayj...@hotmail.com>
AuthorDate: Mon Dec 5 11:11:12 2022 +0200

    Emulation - Fix input from text yielding wrong colors in CP
---
 .../MXRoyale/src/main/royale/mx/controls/beads/ColorPickerPopUp.as    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/ColorPickerPopUp.as
 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/ColorPickerPopUp.as
index f4773b6575..21ec5305b4 100644
--- 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/ColorPickerPopUp.as
+++ 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/ColorPickerPopUp.as
@@ -116,7 +116,7 @@ package mx.controls.beads
 
                protected function changeHandler(event:Event):void
                {
-                       var color:uint = CSSUtils.toColorWithAlpha("#" + 
textInput.text);
+                       var color:uint = Number("0x" + textInput.text);
                        COMPILE::JS
                        {
                                
selectedColorDisplay.element.style.backgroundColor = 
CSSUtils.attributeFromColor(color);
@@ -125,7 +125,7 @@ package mx.controls.beads
 
                protected function inputFinishedHandler(event:Event):void
                {
-                       var color:uint = CSSUtils.toColorWithAlpha("#" + 
textInput.text);
+                       var color:uint = Number("0x" + textInput.text);
                        ((host as IStrandWithModel).model as IColorModel).color 
= color;
                }
                

Reply via email to