Properties: long row labels push their values right instead of overlapping

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rc1XNFw6vDovyoYpwHj9Py
(cherry picked from commit 5e86b07f0eedc02e7d23b1aca7c811f678da9e8b)

(cherry picked from commit e10c7e62a63a282e695d982d86e78554059fb1ff)
(cherry picked from commit 99ae078e3ac666936f71208aaab7f3deb7ab1a75)
This commit is contained in:
Claude
2026-10-11 12:29:57 +00:00
parent afe2999655
commit a5b7e18cfd
+3 -2
View File
@@ -305,8 +305,9 @@ fn transform_row(
actions.push(("prop.toggleAnimation".into(), json!({"layer": lid, "prop": uid, "selected": true})));
}
}
p.text(pos2(r.min.x + 42.0, cy), Align2::LEFT_CENTER, &row.label, Tokens::ui(12.0), t.text);
let vx = r.min.x + (r.width() * 0.5).max(130.0);
let lr = p.text(pos2(r.min.x + 42.0, cy), Align2::LEFT_CENTER, &row.label, Tokens::ui(12.0), t.text);
// Long labels ("Outer Roundness") push their values right rather than under them.
let vx = (r.min.x + (r.width() * 0.5).max(130.0)).max(lr.max.x + 10.0);
let merge = row.merge.as_str();
// With several layers selected the edit applies to all: a scrub by the same change, a typed
// value as it is.