Skip to content

fix(compare): open the run list under its button, inside the window - #392

Merged
harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/compare-run-menu
Nov 24, 2026
Merged

harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/compare-run-menu

Conversation

@harenome

@harenome harenome commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #387

What

Compare's run list opened at the window's left edge. The table toolkit's menu() cleared every menu's inline left and right on each click, which wiped the left Compare's column had just set. menu() now undoes only the rightward flip it made itself, so a position its caller manages is kept; the toolkit's other menus set none, so they behave as before. Compare's list also stays inside the window: it opens above its button when there is more room there, and its height is limited to the room left (the list already scrolls).

Touches

templates and static: app/static/tables.js, app/static/compare/columns.js; a route-suite test in app/ui_tests/test_compare_columns.py.

Before and after

Before After
before-1280x800-col2 after-1280x800-col2
before-1280x500-col1 after-1280x500-col1

Verified

  • New test: the opened list keeps the left Compare set, under its button with room below and above it near the bottom. Fails on main.
  • Backend suite: 2856 tests, OK. Route suite: 661 tests, OK.
  • Chromium, two columns, button vs list (x, y, height):
    • 1280x800: before list at x 0 for buttons at x 597 and 926, bottom at 820; after x 597 and 926, bottom at 792.
    • 390x844: before x 0, bottom 894; after x 62 (kept on screen), bottom 836.
    • 1280x500: before bottom 704; after opens above, y 8 to 310, button at 314.
  • Focus goes to the search box on open; Escape closes.
  • Runs page Columns, Filter and Sort by menus: same boxes before and after at 1280 and 390.

Risk

Low. A caller of NulliusTable.menu that relied on its inline left being cleared on every click would keep a stale one; none does. Undone by a revert.

The table toolkit's menu() cleared every menu's inline left and right on each click, so the run list lost the left Compare had just given it and opened at the window's edge. menu() now undoes only its own rightward flip. Compare places the list above its button when there is more room there, and keeps its height to the room left.
@harenome
harenome merged commit 0def71a into ThinkFlowLab:main Nov 24, 2026
2 checks passed
@harenome
harenome deleted the fix/compare-run-menu branch November 24, 2026 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compare: the run list opens at the window's left edge, not under its Choose a run button

1 participant