Timeline: the expression field grows while typing and drags taller (#371)
The inline expression field took its height from the saved expression, so lines typed into it ran over the rows below until the expression was committed. Its height now comes from the text being typed (up to 8 lines, as before), and its bottom edge drags it to any height in whole lines, as in After Effects; the dragged height is kept per property in the Timeline state (`expr_lines`). Tests: the_expression_field_grows_while_editing_and_drags_taller (ui_inline_edit). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
6fadae2818
commit
0171eb1e2e
@@ -413,6 +413,10 @@ pub struct TimelineState {
|
||||
/// Properties whose inline expression editor is collapsed.
|
||||
#[serde(default)]
|
||||
pub expr_closed: BTreeSet<u64>,
|
||||
/// Inline expression editors given a height (in lines) by dragging their bottom edge;
|
||||
/// the others grow with their text, up to 8 lines.
|
||||
#[serde(default)]
|
||||
pub expr_lines: BTreeMap<u64, usize>,
|
||||
/// Scale and Mask Feather properties whose chain link (Constrain Proportions, on by default)
|
||||
/// was turned off.
|
||||
#[serde(default)]
|
||||
@@ -462,6 +466,7 @@ impl Default for TimelineState {
|
||||
graph_reference: false,
|
||||
graph_transform_box: true,
|
||||
expr_closed: BTreeSet::new(),
|
||||
expr_lines: BTreeMap::new(),
|
||||
unlinked: BTreeSet::new(),
|
||||
columns: default_tl_columns(),
|
||||
source_name: false,
|
||||
|
||||
Reference in New Issue
Block a user