1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-29 21:00:03 -04:00
This commit is contained in:
Hubert Głuchowski
2024-11-28 16:47:05 +01:00
parent 84cc1572b1
commit 622b848c00

View File

@@ -733,7 +733,7 @@ impl GalleyCache {
// Say the user asks to wrap at width 200.0.
// The text layout wraps, and reports that the final width was 196.0 points.
// This than trickles up the `Ui` chain and gets stored as the width for a tooltip (say).
// This then trickles up the `Ui` chain and gets stored as the width for a tooltip (say).
// On the next frame, this is then set as the max width for the tooltip,
// and we end up calling the text layout code again, this time with a wrap width of 196.0.
// Except, somewhere in the `Ui` chain with added margins etc, a rounding error was introduced,