Skip to content
Snippets Groups Projects
Commit 6eeecb7c authored by DarkGod's avatar DarkGod
Browse files

Merge branch 'jade_patch' into 'master'

Jade patch

A temporary fix for the Case of Runaway Jade.

"j" was kerning with a previous space which was recognized by font size but not respected by font draw which persistently tried to word wrap the damn thing to the nonexistent second line.
At least it doesn't word wrap now!
parents 3d4ef31d 968f4a59
No related branches found
No related tags found
No related merge requests found
......@@ -212,7 +212,7 @@ function _M:generateRow(row, force)
else
text = tostring(row[col.display_prop or col.sort])
end
gen = self.font:draw(text, text:toTString():maxWidth(self.font), 255, 255, 255)
gen = self.font:draw(text, self.font:size(text), 255, 255, 255, true)
row.cells[j]._tex, row.cells[j]._tex_w, row.cells[j]._tex_h, row.cells[j].w, row.cells[j].h = gen[1]._tex, gen[1]._tex_w, gen[1]._tex_h, gen[1].w, gen[1].h
if row.cells[j].w > col.width - 2 * col.frame_sel.b4.w then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment