Skip to content

App resize listener

Compare
Choose a tag to compare
@maxence-charriere maxence-charriere released this 08 Jan 11:21
· 274 commits to master since this release

Hello there,

This release brings a way to be notified that that app window size changed within components. It can be done by implementing the Resizer interface:

type myCompo struct{
    app.Compo
}

func (c *myCompo) OnAppResize(ctx app.Context) {
    // Handle app resizing.
}

It can be quite a handful when building layout components. Shell and Flow has been refactored and now uses this mechanism.