mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix multiline textbox wrappping
This commit is contained in:
parent
2db80051fd
commit
99c66c61bb
2 changed files with 14 additions and 9 deletions
|
|
@ -646,7 +646,11 @@ void TextBox::reposition() {
|
|||
void TextBox::refresh() {
|
||||
Container::refresh();
|
||||
label->setSize(
|
||||
size - glm::vec2(padding.z + padding.x, padding.w + padding.y)
|
||||
size - glm::vec2(
|
||||
padding.z + padding.x +
|
||||
LINE_NUMBERS_PANE_WIDTH * showLineNumbers + textOffset,
|
||||
padding.w + padding.y
|
||||
)
|
||||
);
|
||||
label->setPos(glm::vec2(
|
||||
padding.x + LINE_NUMBERS_PANE_WIDTH * showLineNumbers + textInitX -
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue