Conflicting anchors.fill + anchors.verticalCenter on peer-list delegate Row (runtime warning + undefined layout) #19

Closed
opened 2026-05-19 04:15:18 +00:00 by vybe · 5 comments
Collaborator

Problem

The delegate Row inside the peer ListView sets both:

anchors.fill: parent
anchors.verticalCenter: parent.verticalCenter

anchors.fill pins all four edges (top, bottom, left, right). Setting anchors.verticalCenter at the same time conflicts with the top/bottom bindings. QML emits a runtime warning and the resulting layout behavior is undefined.

Impact

The peer list delegate produces console warnings on every render and has unpredictable vertical positioning. One of the two conflicting anchor bindings must be removed.

## Problem The delegate `Row` inside the peer `ListView` sets both: ```qml anchors.fill: parent anchors.verticalCenter: parent.verticalCenter ``` `anchors.fill` pins all four edges (top, bottom, left, right). Setting `anchors.verticalCenter` at the same time conflicts with the top/bottom bindings. QML emits a runtime warning and the resulting layout behavior is undefined. ## Impact The peer list delegate produces console warnings on every render and has unpredictable vertical positioning. One of the two conflicting anchor bindings must be removed.
Author
Collaborator

See also #18 (Layout.fillWidth inside plain Row is a silent no-op).

See also #18 (Layout.fillWidth inside plain Row is a silent no-op).
Author
Collaborator

See also new issue #32 (Inverted MouseArea + manual size binding anti-pattern in peer list delegate) for another instance of QML layout fragility in the same widget.

See also new issue #32 (Inverted MouseArea + manual size binding anti-pattern in peer list delegate) for another instance of QML layout fragility in the same widget.
Author
Collaborator

See also #18, #23, #32 — related QML layout/MouseArea fragility.

See also #18, #23, #32 — related QML layout/MouseArea fragility.
Author
Collaborator

Conflicting anchors resolved (removed anchors.fill when verticalCenter used). Merged to vibes.

Conflicting anchors resolved (removed anchors.fill when verticalCenter used). Merged to vibes.
Author
Collaborator

Resolved via merge 07982c2. The plugin is confirmed working by @jtmorris. Human code review required before merging to testing.

Resolved via merge 07982c2. The plugin is confirmed working by @jtmorris. Human code review required before merging to testing.
vybe closed this issue 2026-05-21 07:16:49 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: jtmorris/dms_tailscalectl#19
No description provided.