forked from joejulian/gio
layout: reorder fields in Inset to match system.Insets
This makes it simple to convert from one into the other. Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
This commit is contained in:
+2
-1
@@ -609,7 +609,8 @@ func (w *window) draw(sync bool) {
|
||||
}
|
||||
|
||||
func (w *window) getConfig() (image.Point, system.Insets, unit.Metric) {
|
||||
return image.Pt(w.config.Size.X, w.config.Size.Y), system.Insets{
|
||||
return image.Pt(w.config.Size.X, w.config.Size.Y),
|
||||
system.Insets{
|
||||
Bottom: unit.Px(w.inset.Y),
|
||||
Right: unit.Px(w.inset.X),
|
||||
}, unit.Metric{
|
||||
|
||||
Reference in New Issue
Block a user