Repository navigation
Commit 9d2fbeb
committed
fix: open a title-bar dropdown under its own button
The right-alignment guard added for title-bar dropdowns pinned the panel
with `right: 0`, but `div.dropdown_menu` is unpositioned (AA leaves it
`display: inline`) and the theme resets `#titlebar_right` to static — so
the panel resolved against `#title_bar` instead and every menu opened at
the bar's far right, under whichever action item happens to sit last.
Only bars with a dropdown that is not the rightmost item showed it.
Make the dropdown its own containing block, so `right: 0` means the
trigger's right edge. inline-block over AA's `display: inline`: an inline
box's containing block spans its text fragments, and the whitespace
around the button in the markup pushed the panel a few pixels past it.
The nipple is pinned right for the same reason - AA offsets the arrow
from the panel's left edge by the button's centre, which lands it on
empty bar once the panel is right-aligned.
The dummy app's wide table now carries four action items, two of them
dropdowns, one of those in the middle - the shape that reproduces it.1 parent ba08948 commit 9d2fbeb
2 files changed
Lines changed: 46 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
768 | 768 | | |
769 | 769 | | |
770 | 770 | | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
771 | 780 | | |
772 | | - | |
773 | | - | |
774 | | - | |
775 | | - | |
776 | | - | |
777 | | - | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
782 | 791 | | |
783 | 792 | | |
784 | 793 | | |
| |||
791 | 800 | | |
792 | 801 | | |
793 | 802 | | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
794 | 809 | | |
795 | 810 | | |
796 | 811 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
7 | 21 | | |
8 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
9 | 30 | | |
10 | 31 | | |
11 | 32 | | |
| |||
0 commit comments