forked from 1b-agent/opencadstudio-upstream
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:
1 parent
bc13f71882
commit
c45f22652d
2 files changed
+14
-31
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user