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:
Pierre Curto
2022-01-24 09:47:38 +01:00
committed by Elias Naur
parent 29e6159d30
commit 3bb0171e7a
4 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -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.