correctly add paragraph break height in [text] tag
This commit is contained in:
parent
e4bffc04ce
commit
b109bda9d4
1 changed files with 1 additions and 6 deletions
|
@ -603,16 +603,11 @@ config rich_label::get_parsed_text(const config& parsed_text)
|
|||
add_text_with_attributes((*curr_item), line, attrs, attr_data);
|
||||
is_image = false;
|
||||
|
||||
// }---------- TABLE TAGS -----------{
|
||||
|
||||
|
||||
} else if (tag.key == "text") {
|
||||
|
||||
DBG_GUI_RL << "text: text=" << ((line.size() > 20) ? line.substr(0,20) : line) << "...";
|
||||
|
||||
(*curr_item)["font_size"] = font::SIZE_NORMAL;
|
||||
|
||||
int tmp_h = get_text_size(*curr_item, w_ - (x_ == 0 ? float_size.x : x_)).y;
|
||||
|
||||
(*curr_item)["text"] = (*curr_item)["text"].str() + line;
|
||||
|
||||
point text_size = get_text_size(*curr_item, w_ - (x_ == 0 ? float_size.x : x_));
|
||||
|
|
Loading…
Add table
Reference in a new issue