v0.84.1: automatic buttons ending the second toolbar row line up under the buttons ending the first

This commit is contained in:
2026-10-29 18:15:27 -07:00
parent 2deacdadca
commit b26b0da54b
4 changed files with 97 additions and 2 deletions
+2 -1
View File
@@ -874,6 +874,7 @@ class TransportBar(QWidget):
"""The layout engine's slots for ``row``. Row 1's automatic items
follow what they belong under: the sidebar, the view, row 0."""
split = self._split()
partners = toolbar.column_partners(self._rows)
slots = []
for entry in self._rows[row]:
item, size = entry["id"], entry.get("size", "auto")
@@ -885,7 +886,7 @@ class TransportBar(QWidget):
if size == "fill":
slots.append(Slot(item, fill=True, min_width=least))
continue
above = self._rects[0].get(toolbar.ANCHORED_UNDER.get(base, ""))
above = self._rects[0].get(partners.get(item, ""))
if row == 1 and base == "library" and split is not None:
slots.append(Slot(item, anchor=(split[0], split[1]), min_width=least))
elif row == 1 and above is not None: