Fixed line drawing on horizontal splitter
This commit is contained in:
parent
7cae61c18c
commit
c2e0dd7333
@ -41,8 +41,16 @@ namespace ShareX.HelpersLib
|
||||
|
||||
using (Pen pen = new Pen(SplitterColor))
|
||||
{
|
||||
g.DrawLine(pen, rect.Left, rect.Top, rect.Left, rect.Bottom - 1);
|
||||
g.DrawLine(pen, rect.Right - 1, rect.Top, rect.Right - 1, rect.Bottom - 1);
|
||||
if (Orientation == Orientation.Horizontal)
|
||||
{
|
||||
g.DrawLine(pen, rect.Left, rect.Top, rect.Right - 1, rect.Top);
|
||||
g.DrawLine(pen, rect.Left, rect.Bottom - 1, rect.Right - 1, rect.Bottom - 1);
|
||||
}
|
||||
else if (Orientation == Orientation.Vertical)
|
||||
{
|
||||
g.DrawLine(pen, rect.Left, rect.Top, rect.Left, rect.Bottom - 1);
|
||||
g.DrawLine(pen, rect.Right - 1, rect.Top, rect.Right - 1, rect.Bottom - 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user