Skip to content

Fix the Text node's Max Width/Height parameters with OptionalF64 losing the value when unticked#3643

Merged
Keavon merged 7 commits intomasterfrom
fix-text-node-clearing-max-width
Jan 16, 2026
Merged

Fix the Text node's Max Width/Height parameters with OptionalF64 losing the value when unticked#3643
Keavon merged 7 commits intomasterfrom
fix-text-node-clearing-max-width

Conversation

@adamgerhant
Copy link
Copy Markdown
Collaborator

@adamgerhant adamgerhant commented Jan 15, 2026

Closes #3587

Deprecates the TaggedValue::OptionalF64 by instead using a pair of bool and f64 input parameters, and adds a custom widget to display the checkbox and number inputs side-by-side.

@github-actions github-actions Bot temporarily deployed to graphite-dev (Preview) January 16, 2026 00:18 Inactive
@github-actions github-actions Bot temporarily deployed to graphite-dev (Preview) January 16, 2026 04:37 Inactive
@github-actions github-actions Bot temporarily deployed to graphite-dev (Preview) January 16, 2026 05:33 Inactive
@github-actions github-actions Bot temporarily deployed to graphite-dev (Preview) January 16, 2026 06:03 Inactive
Copy link
Copy Markdown
Member

@Keavon Keavon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for helping me finish the widgets and migration parts of this.

@Keavon Keavon changed the title Convert OptionalF64 to bool-f64 input pair Fix the Text node's Max Width/Height parameters with OptionalF64 losing the value when unticked Jan 16, 2026
@Keavon Keavon enabled auto-merge (squash) January 16, 2026 06:13
@Keavon Keavon merged commit c60ddcf into master Jan 16, 2026
4 checks passed
@Keavon Keavon deleted the fix-text-node-clearing-max-width branch January 16, 2026 06:13
jackfruitdog pushed a commit to jackfruitdog/Graphite that referenced this pull request Jan 25, 2026
…ng the value when unticked (GraphiteEditor#3643)

* WIP

* Fix widget

* Fix migration

* Remove OptionalF64

* Custom attributes for optional f64 widget

* Code review

* Move comments to another PR

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Text box sizing resets when disabling Max Width or Max Height

2 participants