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/10 14:00:16 UTC

[royale-asjs] branch develop updated: jewel-searchforlist: fix decoration not working properly with latest changes

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 bfbf10c  jewel-searchforlist: fix decoration not working properly with latest changes
bfbf10c is described below

commit bfbf10c5d2f11aade82542092ad5ad9a8f2ea1d5
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Tue Mar 10 15:00:06 2020 +0100

    jewel-searchforlist: fix decoration not working properly with latest changes
---
 .../apache/royale/jewel/beads/controls/textinput/SearchFilterForList.as | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controls/textinput/SearchFilterForList.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controls/textinput/SearchFilterForList.as
index 92c45e9..0f68203 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controls/textinput/SearchFilterForList.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controls/textinput/SearchFilterForList.as
@@ -209,7 +209,7 @@ package org.apache.royale.jewel.beads.controls.textinput
 					//decorate text
 					if(useDecoration)
 					{
-						ir.text = filterText != "" ? decorateText(textData, textData.toUpperCase().indexOf(filterText.toUpperCase()), filterText.length) : textData;
+						ir.text = "<span>" + (filterText != "" ?  decorateText(textData, textData.toUpperCase().indexOf(filterText.toUpperCase()), filterText.length) : textData ) + "</span>";
 					}
                 } else {
                     ir.visible = false;