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:
parent
e53d30e5ca
commit
bb9b322580
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
|
@ -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 />
|
||||||
|
|
Loading…
Reference in a new issue