fix(dimension): grip menu Above Dim Line places text by the style, not a 1-unit nudge

It moved the text a fixed drawing unit off the line and then another unit
up, wrong at any real scale. It now sets DIMTAD = Above on the dimension
and lets the automatic layout place the text.

Fixes #543

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Hakan SevenandClaude Opus 5.5 committed 2026-09-28 19:44:09 +03:00
1 parent bc13f71882
commit c45f22652d
2 files changed
+14 -31

No files matched your search

+8
View File
@@ -1934,6 +1934,14 @@ pub(super) fn on_tab_close(&mut self, idx: usize) -> Task<Message> {
} else {
None
};
if matches!(item.action, GripMenuAction::AboveDimLine) {
crate::entities::dim_override::set_property(
&mut self.tabs[i].scene.document,
popup.handle,
"dim_text_pos_vert",
"Above",
);
}
if let Some(entity) = self.tabs[i].scene.document.get_entity_mut(popup.handle) {
entity.apply_grip_menu(popup.grip_id, item.action);
}