Skip to content

Fix ConfigSection controls not expanding to full width#14236

Merged
DonLakeFlyer merged 1 commit intomavlink:masterfrom
DonLakeFlyer:fix/config-section-full-width
Mar 29, 2026
Merged

Fix ConfigSection controls not expanding to full width#14236
DonLakeFlyer merged 1 commit intomavlink:masterfrom
DonLakeFlyer:fix/config-section-full-width

Conversation

@DonLakeFlyer
Copy link
Copy Markdown
Collaborator

Problem

ConfigSection controls (GCS Failsafe, RC Failsafe, Throttle Failsafe, etc.) don't expand to the full width of their background rectangle. They are only as wide as the controls within.

Root Cause

The RowLayout inside ConfigSection.qml used absolute x/y positioning. This meant the RowLayout floated at its natural implicit width rather than stretching to fill the parent Rectangle, even though the Rectangle itself had Layout.fillWidth: true.

Fix

  • Anchor the RowLayout's left/right edges to its parent Rectangle with margins, so the controls column fills the available width.
  • Keep y positioning (not top/bottom anchors) so the Rectangle's height remains content-driven via implicitHeight without creating a binding loop.
  • Update VehicleConfigView search placeholder text from "Search components..." to "Search configuration...".

The RowLayout inside ConfigSection used absolute x/y positioning, so it
floated at its natural implicit width instead of stretching to the
background Rectangle. Anchor left/right with margins so the controls
column fills the available width. Keep y positioning so the Rectangle
height remains content-driven without a binding loop.

Also update the VehicleConfigView search placeholder to say
'Search configuration...' instead of 'Search components...'.
Copilot AI review requested due to automatic review settings March 29, 2026 15:35
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes layout behavior in the vehicle configuration UI so ConfigSection content stretches to the full width of its background (instead of only sizing to its children), and updates the configuration search placeholder text to better reflect what’s being searched.

Changes:

  • Updated ConfigSection.qml to anchor the internal RowLayout to the left/right edges of its parent rectangle with margins, allowing the controls column to fill available width.
  • Updated the Vehicle Setup search field placeholder text to “Search configuration...”.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/Vehicle/VehicleSetup/VehicleConfigView.qml Updates search placeholder text to match configuration search behavior.
src/QmlControls/ConfigSection.qml Anchors the content layout to fill the section background width while keeping height content-driven.

@github-actions
Copy link
Copy Markdown
Contributor

Build Results

Platform Status

Platform Status Details
Linux Passed View
Windows Passed View
MacOS Passed View
Android Passed View

All builds passed.

Pre-commit

Check Status Details
pre-commit Failed (non-blocking) View

Pre-commit hooks: 4 passed, 32 failed, 7 skipped.

Test Results

linux-sanitizers: 67 passed, 0 skipped
linux_gcc_64: 67 passed, 0 skipped
Total: 134 passed, 0 skipped

Artifact Sizes

Artifact Size Δ from master
QGroundControl 247.50 MB -6.23 MB (decrease)
QGroundControl 337.82 MB +84.09 MB (increase)
QGroundControl-aarch64 177.07 MB +0.00 MB (increase)
QGroundControl-installer-AMD64 134.75 MB -0.02 MB (decrease)
QGroundControl-installer-AMD64-ARM64 77.40 MB -0.00 MB (decrease)
QGroundControl-installer-ARM64 106.13 MB +0.02 MB (increase)
QGroundControl-mac 188.48 MB No change
QGroundControl-windows 188.51 MB No change
QGroundControl-x86_64 172.14 MB +0.01 MB (increase)
Total size increased by 77.87 MB---
Updated: 2026-03-29 16:31:02 UTC • Triggered by: Android

@DonLakeFlyer DonLakeFlyer merged commit 6a5ec0d into mavlink:master Mar 29, 2026
29 checks passed
@DonLakeFlyer DonLakeFlyer deleted the fix/config-section-full-width branch March 29, 2026 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants