mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 09:55:40 +00:00
widget/material: remove redundant offset op
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -65,7 +65,6 @@ func (d *DecorationsStyle) layoutDecorations(gtx layout.Context) layout.Dimensio
|
|||||||
})
|
})
|
||||||
}),
|
}),
|
||||||
layout.Rigid(func(gtx layout.Context) layout.Dimensions {
|
layout.Rigid(func(gtx layout.Context) layout.Dimensions {
|
||||||
defer op.Offset(f32.Point{}).Push(gtx.Ops).Pop()
|
|
||||||
// Remove the unmaximize action as it is taken care of by maximize.
|
// Remove the unmaximize action as it is taken care of by maximize.
|
||||||
actions := d.Actions &^ system.ActionUnmaximize
|
actions := d.Actions &^ system.ActionUnmaximize
|
||||||
var size image.Point
|
var size image.Point
|
||||||
|
|||||||
Reference in New Issue
Block a user