We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a7be73 commit 947357bCopy full SHA for 947357b
src/ui/layouts/grid_layout.cpp
@@ -53,7 +53,7 @@ void ui::GridLayout::render(const ServiceProvider& service_provider) const {
53
x_pos += margin_x + total_width;
54
} else {
55
const u32 total_margin = this->m_size <= 1 ? 0 : (this->m_size - 1) * m_gap.get_margin();
56
- assert(layout().get_rect().height() > (total_margin - (m_margin.second * 2))
+ assert(layout().get_rect().height() > (total_margin + (m_margin.second * 2))
57
&& "height has to be greater than the margins");
58
height = (layout().get_rect().height() - total_margin - (m_margin.second * 2)) / this->m_size;
59
0 commit comments