diff --git a/editor/ui/dialogs/content/EdImageProps.js b/editor/ui/dialogs/content/EdImageProps.js
index c586d76ac9fc..d6e308f4d277 100644
--- a/editor/ui/dialogs/content/EdImageProps.js
+++ b/editor/ui/dialogs/content/EdImageProps.js
@@ -793,3 +793,14 @@ function onImageCancel()
CancelTimer();
onCancel();
}
+
+function onAlignFocus()
+{
+ dialog.alignText.setAttribute("focused", "true");
+}
+
+function onAlignBlur()
+{
+ dialog.alignText.removeAttribute("focused");
+}
+
diff --git a/editor/ui/dialogs/content/EdImageProps.xul b/editor/ui/dialogs/content/EdImageProps.xul
index 23c257a7eed3..f455b32bccab 100644
--- a/editor/ui/dialogs/content/EdImageProps.xul
+++ b/editor/ui/dialogs/content/EdImageProps.xul
@@ -226,7 +226,7 @@
+ style="height: 15px" onfocus="onAlignFocus();" onblur="onAlignBlur();">