Skip to content

Commit 7990a82

Browse files
committed
Fix switching view modes with header disabled
1 parent a74debc commit 7990a82

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- Nothing
66

77
### Fixed:
8+
- Fix switching view modes with "Table header outside list" disabled (by @Willy-JL)
89
- Fix GUI redraws not pausing when unfocused, hovered and not moving mouse (by @Willy-JL)
910

1011
### Removed:

modules/gui.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3281,7 +3281,7 @@ def tick_list_columns(self):
32813281
offset = ghost_column_size * self.ghost_columns_enabled_count
32823282
imgui.set_cursor_pos_x(imgui.get_cursor_pos_x() - offset)
32833283
pos_y = imgui.get_cursor_pos_y()
3284-
header_h = imgui.get_text_line_height_with_spacing() if globals.settings.table_header_outside_list else 0
3284+
header_h = imgui.get_text_line_height_with_spacing() if globals.settings.table_header_outside_list else 1
32853285
if imgui.begin_table(
32863286
table_id,
32873287
column=cols.count,
@@ -3311,7 +3311,8 @@ def tick_list_columns(self):
33113311
imgui.table_header(column.header)
33123312

33133313
imgui.end_table()
3314-
imgui.set_cursor_pos_y(pos_y + header_h)
3314+
if not globals.settings.table_header_outside_list:
3315+
imgui.set_cursor_pos_y(pos_y + header_h)
33153316

33163317
def get_game_cell_config(self):
33173318
side_indent = imgui.style.item_spacing.x * 2

0 commit comments

Comments
 (0)