makepad/platform/script/derive
Kevin Boos 62691a290e
Script derive: reload a field back to its own #[live] default (#1278)
When a reload/reapply/rebake didn't set a field, it got reset to its type's
default, not the default the field declares with `#[live(..)]`. So a new
widget and a reloaded one could disagree, e.g. a Label's
`#[live(Flow::right_wrap())] flow` became Flow's non-wrapping default after
any live edit or `request_script_reapply()`. That's why CalloutTooltip's
label stopped wrapping and just got cut off in narrow windows.

Now such a field goes back to its declared default, same as a new one would.
Fields without one still get their type's default.
2026-10-03 09:26:30 +02:00
..
src Script derive: reload a field back to its own #[live] default (#1278) 2026-10-03 09:26:30 +02:00
Cargo.toml First 2.0 2026-02-12 14:52:33 +01:00