From 8bbefda3fc18ca399cdefc8ac172daf0b73fb0e6 Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Tue, 2 Sep 2025 18:44:22 +0200 Subject: [PATCH] Fix: Last row in file browser showing sometimes clipped out of view In the vertical list display mode, if only the top part of a file was scrolled into view, the file wouldn't actually draw. So while scrolling down the list, the last item would visibly pop up. This wasn't intended, not drawing these items is just an optimization. Issue was the offset for the table header (reading something like "Name | Modified | Size") wasn't accounted for. --- source/blender/editors/space_file/file_draw.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/space_file/file_draw.cc b/source/blender/editors/space_file/file_draw.cc index 47dd29056d1..d52cf7f6ffb 100644 --- a/source/blender/editors/space_file/file_draw.cc +++ b/source/blender/editors/space_file/file_draw.cc @@ -1291,7 +1291,7 @@ void file_draw_list(const bContext *C, ARegion *region) } offset = ED_fileselect_layout_offset( - layout, int(region->v2d.cur.xmin), int(-region->v2d.cur.ymax)); + layout, int(region->v2d.cur.xmin), int(-region->v2d.cur.ymax) + layout->offset_top); offset = std::max(offset, 0); numfiles_layout = ED_fileselect_layout_numfiles(layout, region);