correctly center buttons

This commit is contained in:
Saas
2025-10-12 16:23:54 +02:00
parent 7544500be1
commit 59fb83a469

View File

@@ -86,8 +86,8 @@ namespace FlaxEditor.Surface
Parent = this Parent = this
}; };
// Buttons // Ok and Cancel Buttons
float buttonsWidth = (width - 16.0f) * 0.5f; float buttonsWidth = (width - 12.0f) * 0.5f;
float buttonsHeight = 20.0f; float buttonsHeight = 20.0f;
var okButton = new Button(4.0f, Bottom - 4.0f - buttonsHeight, buttonsWidth, buttonsHeight) var okButton = new Button(4.0f, Bottom - 4.0f - buttonsHeight, buttonsWidth, buttonsHeight)
{ {