forked from joejulian/gio
ui/layout: reset Dimensions in Context.Reset
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -93,6 +93,7 @@ func (s *Context) Layout(cs Constraints, w Widget) Dimensions {
|
||||
// Reset the context.
|
||||
func (c *Context) Reset(cfg ui.Config, cs Constraints) {
|
||||
c.Constraints = cs
|
||||
c.Dimensions = Dimensions{}
|
||||
c.Config = cfg
|
||||
if c.Ops == nil {
|
||||
c.Ops = new(ui.Ops)
|
||||
|
||||
Reference in New Issue
Block a user