Skip to content

Commit

Permalink
ToolWindow : Fix vertical alignment of close button in ToolWindow header
Browse files Browse the repository at this point in the history
  • Loading branch information
colhountech committed Jan 31, 2025
1 parent 2f97f1a commit ce2a16b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AcrylicUI/Docking/ToolWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ private void UpdateCloseButton()
_closeButtonRect = new Rectangle
{
X = ClientRectangle.Right - DockIcons.tw_close.Width - Scale(Consts.CONTROL_BUTTON_PADDING * 2 ) ,
Y = ClientRectangle.Top + (Scale(Consts.ToolWindowHeaderSize) / 2) - ( DockIcons.tw_close.Height) ,
Y = ClientRectangle.Top + (Scale(Consts.ToolWindowHeaderSize) / 2) - ( DockIcons.tw_close.Height / 2) ,
Width = DockIcons.tw_close.Width,
Height = DockIcons.tw_close.Height
};
Expand Down

0 comments on commit ce2a16b

Please sign in to comment.