~eliasnaur/gio

18d4dbf60c4ff644fe976b9e4f1be27229848529 — Chris Waldon 4 months ago 00c4a53
layout: document how Inset modifies constraints

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
1 files changed, 3 insertions(+), 1 deletions(-)

M layout/layout.go
M layout/layout.go => layout/layout.go +3 -1
@@ 109,7 109,9 @@ func (c Constraints) Constrain(size image.Point) image.Point {
	return size
}

// Inset adds space around a widget.
// Inset adds space around a widget by decreasing its maximum
// constraints. The minimum constraints will be adjusted to ensure
// they do not exceed the maximum.
type Inset struct {
	Top, Right, Bottom, Left unit.Value
}