Skip to content

Commit

Permalink
Fix tooltip height
Browse files Browse the repository at this point in the history
  • Loading branch information
luboslenco committed Dec 30, 2020
1 parent e98fef0 commit 5036a71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/zui/Zui.hx
Expand Up @@ -1320,7 +1320,8 @@ class Zui {
}
tooltipX = Math.min(tooltipX, kha.System.windowWidth() - tooltipW - 20);
if (bindGlobalG) globalG.begin(false);
globalG.fillRect(tooltipX, tooltipY, tooltipW + 20, ELEMENT_H() * lines.length * 0.6);
var fontHeight = ops.font.height(fontSize);
globalG.fillRect(tooltipX, tooltipY, tooltipW + 20, fontHeight * lines.length);
globalG.font = ops.font;
globalG.fontSize = fontSize;
globalG.color = t.ACCENT_COL;
Expand Down

0 comments on commit 5036a71

Please sign in to comment.