Skip to content

Fix #40: W/H constrain-proportions link in the Properties panel and Control bar - #156

Merged
bflatastic merged 1 commit into
mainfrom
fix/issue-40
Oct 5, 2026
Merged

bflatastic merged 1 commit into
mainfrom
fix/issue-40

Conversation

@bflatastic

Copy link
Copy Markdown
Member

Fixes #40: a constrain-proportions link between W and H in the Properties panel and the Control bar, as well as the Transform panel.

  • The Transform panel's link used to live in panel-local memory. It is now one preference, constrainProportions (prefs.get/prefs.set), which also appears as a checkbox in Preferences ▸ General.
  • A shared transform::constrain_link button sits between W and H in all three places, and every W/H field passes proportional to object.setBounds.
  • Tests: panels/tests_constrain.rs.

Checks

🤖 Generated with Claude Code

…ontrol bar

The Transform panel had the link, but kept it in panel-local egui memory;
the Properties panel's Transform section and the Control bar had none, so
size changes there were never proportional.

The link is now the constrainProportions preference (prefs.get/prefs.set),
one toggle shared by the three places (transform::constrain_link), and every
W/H field passes it to object.setBounds as `proportional`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Add an "Aspect Ratio Lock" (chain icon) for proportional scaling

1 participant