diff --git a/playlet-lib/src/components/ButtonEx/ButtonEx.bs b/playlet-lib/src/components/ButtonEx/ButtonEx.bs
index 099084f6..9da30afd 100644
--- a/playlet-lib/src/components/ButtonEx/ButtonEx.bs
+++ b/playlet-lib/src/components/ButtonEx/ButtonEx.bs
@@ -31,7 +31,6 @@ function DoLayout() as void
iconWidth = 0
iconHeight = 0
textWidth = 0
- textHeight = 0
iconTextSpacing = 0
if iconVisible
@@ -43,7 +42,6 @@ function DoLayout() as void
if textVisible
labelRect = m.labelNode.boundingRect()
textWidth = labelRect.width
- textHeight = labelRect.height
contentWidth += textWidth
end if
@@ -65,8 +63,8 @@ function DoLayout() as void
if textVisible
x = (width - contentWidth) / 2 + padding[0] + iconWidth + iconTextSpacing
- y = (height - textHeight) / 2
- m.labelNode.translation = [x, y]
+ m.labelNode.height = height
+ m.labelNode.translation = [x, 0]
end if
OnAnchorChange()
@@ -77,6 +75,7 @@ function OnAnchorChange()
height = m.top.height
anchor = m.top.anchor
+ m.anchorNode.scaleRotateCenter = [width / 2, height / 2]
m.anchorNode.translation = [-width * anchor[0], -height * anchor[1]]
end function
diff --git a/playlet-lib/src/components/ButtonEx/ButtonEx.xml b/playlet-lib/src/components/ButtonEx/ButtonEx.xml
index c56e5eb9..4ccb23d3 100644
--- a/playlet-lib/src/components/ButtonEx/ButtonEx.xml
+++ b/playlet-lib/src/components/ButtonEx/ButtonEx.xml
@@ -33,18 +33,16 @@
-
-
-
-
-
-
-
+
+
+
+
+
+ fieldToInterp="anchor.scale" />
\ No newline at end of file
diff --git a/playlet-lib/src/components/Screens/SettingsScreen/HomeScreenEditor/HomeScreenEditor.xml b/playlet-lib/src/components/Screens/SettingsScreen/HomeScreenEditor/HomeScreenEditor.xml
index f50e4961..06238bf4 100644
--- a/playlet-lib/src/components/Screens/SettingsScreen/HomeScreenEditor/HomeScreenEditor.xml
+++ b/playlet-lib/src/components/Screens/SettingsScreen/HomeScreenEditor/HomeScreenEditor.xml
@@ -24,30 +24,31 @@
-
-
-
-
+ padding="[30,30]"
+ translation="[340,500]" />
+
\ No newline at end of file
diff --git a/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceSettings.xml b/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceSettings.xml
index 63453c47..d1429904 100644
--- a/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceSettings.xml
+++ b/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceSettings.xml
@@ -23,17 +23,18 @@
id="textEditBox"
width="480"
height="50"
- translation="[200,50]" />
-
+
+ height="50"
+ iconWidth="22"
+ iconHeight="22"
+ text="Edit"
+ translation="[670,50]" />