updated to current editbox.lua version of ZK and added a workaround for stopping wrapText to add unnecessary line breaks
ZK version:
They replaced all direct calls to Spring functions by local ones (little speed and readability boost)
They added an optional parameter to GetPhysicalLinePosition (=usePhysical) which is currently not used in byar-chobby -> so it doesn't change any functional behaviour in byar-chobby
WrapText:
This workaround enables autosize to work for textboxes and editboxes, when the width shall increase to the used size of the largest line in the text paragraph
The underlying origin of the mismatching line widths is located in engine's WrapText function, which sums up the width of each recognized word for the current line and can result in a slightly larger line width than the result of GetTextWidth (usually about 0.000001 px). Though it causes a line break, where no line break is needed.
updated to current editbox.lua version of ZK and added a workaround for stopping wrapText to add unnecessary line breaks
ZK version:
WrapText: