Repository navigation
fix(compare): open the run list under its button, inside the window - #392
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #387
What
Compare's run list opened at the window's left edge. The table toolkit's
menu()cleared every menu's inlineleftandrighton each click, which wiped theleftCompare'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 inapp/ui_tests/test_compare_columns.py.Before and after
Verified
leftCompare set, under its button with room below and above it near the bottom. Fails on main.Risk
Low. A caller of
NulliusTable.menuthat relied on its inlineleftbeing cleared on every click would keep a stale one; none does. Undone by a revert.