fix EditField rendering with TWBT

develop
myk002 2022-09-16 15:24:33 -07:00
parent 170d7b9b51
commit 6fff83de5a
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 1 additions and 0 deletions

@ -263,6 +263,7 @@ function EditField:onRenderBody(dc)
end_pos == #txt and '' or string.char(26)) end_pos == #txt and '' or string.char(26))
end end
dc:advance(self.text_offset):string(txt) dc:advance(self.text_offset):string(txt)
dc:string((' '):rep(dc.clip_x2 - dc.x))
end end
function EditField:onInput(keys) function EditField:onInput(keys)