mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
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:
+1
-1
@@ -113,7 +113,7 @@ func (c Constraints) Constrain(size image.Point) image.Point {
|
||||
// constraints. The minimum constraints will be adjusted to ensure
|
||||
// they do not exceed the maximum.
|
||||
type Inset struct {
|
||||
Top, Right, Bottom, Left unit.Value
|
||||
Top, Bottom, Left, Right unit.Value
|
||||
}
|
||||
|
||||
// Layout a widget.
|
||||
|
||||
Reference in New Issue
Block a user