Fix toolbar animation and button tooltip positions

This commit is contained in:
Jaex 2017-10-24 03:22:10 +03:00
parent 1a9888e003
commit 1f5931815e

View file

@ -831,7 +831,7 @@ internal void CreateToolbar()
{
tsi.MouseEnter += (sender, e) =>
{
Point pos = CaptureHelpers.ScreenToClient(menuForm.PointToScreen(tsi.Bounds.Location));
Point pos = form.PointToClient(menuForm.PointToScreen(tsi.Bounds.Location));
pos.Y += tsi.Height + 8;
MenuTextAnimation.Text = tsi.Text;
@ -864,7 +864,7 @@ internal void CreateToolbar()
private void MenuForm_Shown(object sender, EventArgs e)
{
form.toolbarAnimationRectangle = CaptureHelpers.ScreenToClient(menuForm.Bounds);
form.toolbarAnimationRectangle = form.RectangleToClient(menuForm.Bounds);
form.toolbarAnimation = new OpacityAnimation()
{