From 59fb83a4694b9cab9978c4e9d8bc4222e6f40112 Mon Sep 17 00:00:00 2001 From: Saas Date: Sun, 12 Oct 2025 16:23:54 +0200 Subject: [PATCH] correctly center buttons --- Source/Editor/Surface/AttributesEditor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Editor/Surface/AttributesEditor.cs b/Source/Editor/Surface/AttributesEditor.cs index 2f1247da9..29d5860c3 100644 --- a/Source/Editor/Surface/AttributesEditor.cs +++ b/Source/Editor/Surface/AttributesEditor.cs @@ -86,8 +86,8 @@ namespace FlaxEditor.Surface Parent = this }; - // Buttons - float buttonsWidth = (width - 16.0f) * 0.5f; + // Ok and Cancel Buttons + float buttonsWidth = (width - 12.0f) * 0.5f; float buttonsHeight = 20.0f; var okButton = new Button(4.0f, Bottom - 4.0f - buttonsHeight, buttonsWidth, buttonsHeight) {