Fix ui::label line height calculation
This commit is contained in:
parent
a7d331544c
commit
83559aba51
1 changed files with 1 additions and 1 deletions
|
|
@ -535,7 +535,7 @@ namespace psemek::ui
|
|||
// hardcode font height as min line height
|
||||
bbox[1] = {0.f, 1.f * font_height};
|
||||
for (std::size_t i = lines[l].begin; i < lines[l].end; ++i)
|
||||
bbox |= items[i].position;
|
||||
bbox[0] |= items[i].position[0];
|
||||
line_bbox[l] = bbox;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue