We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c4a494 commit b4e0137Copy full SHA for b4e0137
src/fidget/htmlbackend.nim
@@ -87,8 +87,8 @@ proc computeTextBox*(
87
88
tempDiv.innerText = text
89
90
- result.x = float tempDiv.clientWidth
91
- result.y = float tempDiv.clientHeight
+ result.x = float(tempDiv.clientWidth) + 1.0
+ result.y = float(tempDiv.clientHeight)
92
computeTextBoxCache[key] = result
93
94
computeTextLayout = proc(node: Node) =
@@ -124,7 +124,7 @@ proc measureText(
124
): TextMetrics {.importcpp.}
125
126
var baseLineCache = newTable[string, float]()
127
-proc getBaseLine *(
+proc getBaseLine*(
128
fontName: string,
129
fontSize: float,
130
fontWeight: float,
0 commit comments