Skip to content

Commit 165d2dc

Browse files
Copilotfsmosca
andcommitted
Rebalance review sidebar height
Agent-Logs-Url: https://github.com/fsmosca/Python-Easy-Chess-GUI/sessions/911d3950-6fe1-4a07-83c5-f4499695d790 Co-authored-by: fsmosca <22366935+fsmosca@users.noreply.github.com>
1 parent 8557b1f commit 165d2dc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

python_easy_chess_gui.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@
7070
REVIEW_MAX_DISPLAY_GAMES = 10000
7171
REVIEW_ANALYSIS_MULTIPV_LINES = 3
7272
REVIEW_ANALYSIS_PV_MOVES = 7
73-
REVIEW_MOVE_LIST_HEIGHT = 11
73+
REVIEW_MOVE_LIST_HEIGHT = 13
74+
REVIEW_ANALYSIS_BOX_HEIGHT = 5
7475

7576

7677
platform = sys.platform
@@ -2920,15 +2921,16 @@ def build_review_layout(self, is_user_white=True):
29202921
font=('Consolas', 10), key='review_header_k',
29212922
disabled=True)],
29222923
[sg.Text('Move list', size=(16, 1), font=('Consolas', 10))],
2923-
# Tuned so the analysis panel bottom aligns with the board bottom.
2924+
# Tuned so the move list and analysis panel align with the board height.
29242925
[sg.Listbox(values=['Start position'], size=(52, REVIEW_MOVE_LIST_HEIGHT),
29252926
font=('Consolas', 10), key='review_move_list_k',
29262927
enable_events=True)],
29272928
[sg.Text('Position 0/0', size=(20, 1), font=('Consolas', 10),
29282929
key='review_nav_k', relief='sunken')],
29292930
[sg.Text('Analysis stopped', size=(52, 1), font=('Consolas', 10),
29302931
key='review_analysis_status_k', relief='sunken')],
2931-
[sg.Multiline('', do_not_clear=True, autoscroll=False, size=(52, 4),
2932+
[sg.Multiline('', do_not_clear=True, autoscroll=False,
2933+
size=(52, REVIEW_ANALYSIS_BOX_HEIGHT),
29322934
font=('Consolas', 10), key='review_analysis_k',
29332935
disabled=True)]
29342936
]

0 commit comments

Comments
 (0)