Refactor #1266 (code quality and simplicity)
This commit is contained in:
@@ -50,14 +50,9 @@ namespace FlaxEditor.GUI
|
||||
{
|
||||
if (toolstrip == null)
|
||||
return;
|
||||
|
||||
var lastToolstripButton = toolstrip.LastButton;
|
||||
var parentSize = Parent.Size;
|
||||
Bounds = new Rectangle
|
||||
(
|
||||
new Float2(lastToolstripButton.Right + 8.0f, 0),
|
||||
new Float2(parentSize.X - X - 8.0f, toolstrip.Height)
|
||||
);
|
||||
Bounds = new Rectangle(lastToolstripButton.Right + 8.0f, 0, parentSize.X - X - 8.0f, toolstrip.Height);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user