fix(commands): JUSTIFYTEXT sets vertical alignment for single-line TEXT
The Text branch only set horizontal_alignment, so TL/BL/MC etc. never moved the text box vertically. Map the T*/M*/B* codes to Top/Middle/Bottom and re-sync the alignment point. (#246) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
3d761bdcd3
commit
2bc5c2a686
2 changed files with 23 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ fn text_valign_str(a: &acadrust::entities::TextVerticalAlignment) -> &'static st
|
|||
}
|
||||
}
|
||||
|
||||
fn sync_text_alignment_point(t: &mut Text) {
|
||||
pub(crate) fn sync_text_alignment_point(t: &mut Text) {
|
||||
let needs_alignment_point = !matches!(
|
||||
(t.horizontal_alignment, t.vertical_alignment),
|
||||
(HA::Left, VA::Baseline)
|
||||
|
|
|
|||
Loading…
Reference in a new issue