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 2020/04/04 04:14:40 UTC
[royale-asjs] branch develop updated: Closes #76
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 9d6252d Closes #76
9d6252d is described below
commit 9d6252d04971bda3914c5139c626572ae79cf481
Author: DESKTOP-RH4S838\Yishay <yi...@hotmail.com>
AuthorDate: Sat Apr 4 07:07:31 2020 +0300
Closes #76
---
frameworks/projects/MXRoyale/src/main/royale/mx/controls/Button.as | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Button.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Button.as
index 4f5b74e..1fdab2a 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Button.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Button.as
@@ -699,7 +699,7 @@ public class Button extends UIComponent implements IDataRenderer, IListItemRende
private function handleImageLoaded2(event:BrowserEvent):void
{
var img:HTMLImageElement = event.target as HTMLImageElement;
- element.style["padding-left"] = String(img.naturalWidth+4)+"px";
+ element.style["text-indent"] = "4px";
this.height = Math.max(img.naturalHeight, element.offsetHeight);