1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-22 20:58:34 +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 Fixes
- Fixed a crash if a paragraph has a link formatting code, but no font - 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 ### MLEM.Extended
Improvements Improvements

View file

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