diff --git a/application.go b/application.go index a813c18..03d5f0d 100644 --- a/application.go +++ b/application.go @@ -218,6 +218,7 @@ EventLoop: if inputCapture != nil { event = inputCapture(event) if event == nil { + a.draw() continue // Don't forward event. } } diff --git a/box.go b/box.go index 3e8b82e..6bcd6d2 100644 --- a/box.go +++ b/box.go @@ -106,7 +106,11 @@ func (b *Box) GetInnerRect() (int, int, int, int) { height - b.paddingTop - b.paddingBottom } -// SetRect sets a new position of the primitive. +// SetRect sets a new position of the primitive. Note that this has no effect +// if this primitive is part of a layout (e.g. Flex, Grid) or if it was added +// like this: +// +// application.SetRoot(b, true) func (b *Box) SetRect(x, y, width, height int) { b.x = x b.y = y diff --git a/doc.go b/doc.go index 005472b..4bceea2 100644 --- a/doc.go +++ b/doc.go @@ -21,6 +21,7 @@ The package implements the following widgets: - Form: Forms composed of input fields, drop down selections, checkboxes, and buttons. - Modal: A centered window with a text message and one or more buttons. + - Grid: A grid based layout manager. - Flex: A Flexbox based layout manager. - Pages: A page based layout manager.