Skip to main content

invalidate_size

Function invalidate_size 

Source
pub fn invalidate_size(node: RNode)
Expand description

Tell layout that a node’s intrinsic size may have changed. For tweaks (docs/tweaks.md): after a native call that alters a widget’s preferred size (fonts, tick marks, bezel styles), the measure cache along the node’s path must be invalidated — Day can’t see native mutations it didn’t make. Relayout runs at the next turn boundary as usual. No-op on a disposed node.

Day API ↩ Guides· daybrite.dev