mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 09:47:22 +13:00
Fix toolbar animation and button tooltip positions
This commit is contained in:
parent
1a9888e003
commit
1f5931815e
1 changed files with 2 additions and 2 deletions
|
@ -831,7 +831,7 @@ internal void CreateToolbar()
|
||||||
{
|
{
|
||||||
tsi.MouseEnter += (sender, e) =>
|
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;
|
pos.Y += tsi.Height + 8;
|
||||||
|
|
||||||
MenuTextAnimation.Text = tsi.Text;
|
MenuTextAnimation.Text = tsi.Text;
|
||||||
|
@ -864,7 +864,7 @@ internal void CreateToolbar()
|
||||||
|
|
||||||
private void MenuForm_Shown(object sender, EventArgs e)
|
private void MenuForm_Shown(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
form.toolbarAnimationRectangle = CaptureHelpers.ScreenToClient(menuForm.Bounds);
|
form.toolbarAnimationRectangle = form.RectangleToClient(menuForm.Bounds);
|
||||||
|
|
||||||
form.toolbarAnimation = new OpacityAnimation()
|
form.toolbarAnimation = new OpacityAnimation()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue