In some cases UI widgets overlap each others with small number of
pixels. Those widgets should be seen as different rows during
navigation. New condition makes that, even if next elements starts in
3/4 of current row height, it would create new row.
Change-Id: I2b84b7b35de762365dcd95117c1fcc919f38e447
objInfo.obj = std::move(a.object);
objInfo.pos = a.pos;
- if (!new_line && (objInfo.pos.position.x < prev_obj_x || rowInfo.pos.position.y + rowInfo.pos.size.height <= objInfo.pos.position.y)) {
+ if (!new_line && (objInfo.pos.position.x < prev_obj_x || 4 * (objInfo.pos.position.y - rowInfo.pos.position.y) >= 3 * rowInfo.pos.size.height)) {
// new row
rowInfo.last = i - 1;
rowInfos.push_back(rowInfo);