Fixed many issues with text paragraphs in GUI
This commit is contained in:
parent
2d039dc47b
commit
eb490906a0
13 changed files with 132 additions and 37 deletions
|
|
@ -1039,7 +1039,8 @@ void Toolbar::chat_box() {
|
|||
gui.new_id(id++, [&] {
|
||||
gui.element<TextParagraph>("text", TextParagraph::Data{
|
||||
.text = build_paragraph_from_chat_message(chatMessage, 1.0f),
|
||||
.width = CHATBOX_WIDTH
|
||||
.maxGrowX = CHATBOX_WIDTH,
|
||||
.ellipsis = false
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
@ -1088,7 +1089,8 @@ void Toolbar::chat_box() {
|
|||
}) {
|
||||
gui.element<TextParagraph>("message", TextParagraph::Data{
|
||||
.text = build_paragraph_from_chat_message(chatMessage, a),
|
||||
.width = CHATBOX_WIDTH
|
||||
.maxGrowX = CHATBOX_WIDTH,
|
||||
.ellipsis = false
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue