1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-12-24 01:09:23 +01:00

Fixed tooltips with custom text scale not snapping to the mouse correctly in their first displayed frame

This commit is contained in:
Ell 2021-07-22 04:27:57 +02:00
parent e53d30e5ca
commit bb9b322580
2 changed files with 2 additions and 0 deletions

View file

@ -29,6 +29,7 @@ Improvements
Fixes
- Fixed a crash if a paragraph has a link formatting code, but no font
- Fixed tooltips with custom text scale not snapping to the mouse correctly in their first displayed frame
### MLEM.Extended
Improvements

View file

@ -67,6 +67,7 @@ namespace MLEM.Ui.Elements {
if (this.Parent != null)
throw new NotSupportedException($"A tooltip shouldn't be the child of another element ({this.Parent})");
base.ForceUpdateArea();
this.SnapPositionToMouse();
}
/// <inheritdoc />