Remove the separator from ItemList's thumbnail mode
This commit is contained in:
parent
c12d63556b
commit
2e28fb7cdd
1 changed files with 9 additions and 7 deletions
|
@ -1082,14 +1082,16 @@ void ItemList::_notification(int p_what) {
|
||||||
first_visible_separator = lo;
|
first_visible_separator = lo;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Draw visible separators.
|
// If not in thumbnails mode, draw visible separators.
|
||||||
for (int i = first_visible_separator; i < separators.size(); i++) {
|
if (icon_mode != ICON_MODE_TOP) {
|
||||||
if (separators[i] > clip.position.y + clip.size.y) {
|
for (int i = first_visible_separator; i < separators.size(); i++) {
|
||||||
break; // done
|
if (separators[i] > clip.position.y + clip.size.y) {
|
||||||
}
|
break; // done
|
||||||
|
}
|
||||||
|
|
||||||
const int y = base_ofs.y + separators[i];
|
const int y = base_ofs.y + separators[i];
|
||||||
draw_line(Vector2(theme_cache.panel_style->get_margin(SIDE_LEFT), y), Vector2(width, y), theme_cache.guide_color);
|
draw_line(Vector2(theme_cache.panel_style->get_margin(SIDE_LEFT), y), Vector2(width, y), theme_cache.guide_color);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Do a binary search to find the first item whose rect reaches below clip.position.y.
|
// Do a binary search to find the first item whose rect reaches below clip.position.y.
|
||||||
|
|
Loading…
Reference in a new issue