diff options
author | Tulir Asokan <tulir@maunium.net> | 2018-05-22 17:24:47 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2018-05-22 17:24:47 +0300 |
commit | cc28c7b65f9aa53a6bb1f0162f6124e1ad5edac2 (patch) | |
tree | dda36235956309fc4fb514632a3ab7cdd18b4abd /ui/widget | |
parent | cce79ab7d8481a06054166049876c8a2cbb3418f (diff) |
Gofmt
Diffstat (limited to 'ui/widget')
-rw-r--r-- | ui/widget/center.go | 10 | ||||
-rw-r--r-- | ui/widget/util.go | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/ui/widget/center.go b/ui/widget/center.go index 48e6153..07dbfd7 100644 --- a/ui/widget/center.go +++ b/ui/widget/center.go @@ -17,8 +17,8 @@ package widget import ( - "maunium.net/go/tview" "maunium.net/go/tcell" + "maunium.net/go/tview" ) // Center wraps the given tview primitive into a Flex element in order to @@ -37,15 +37,15 @@ func Center(width, height int, p tview.Primitive) tview.Primitive { type transparentCenter struct { *tview.Box prefWidth, prefHeight int - p tview.Primitive + p tview.Primitive } func TransparentCenter(width, height int, p tview.Primitive) tview.Primitive { return &transparentCenter{ - Box: tview.NewBox(), - prefWidth: width, + Box: tview.NewBox(), + prefWidth: width, prefHeight: height, - p: p, + p: p, } } diff --git a/ui/widget/util.go b/ui/widget/util.go index cd4f99f..cd1fcd0 100644 --- a/ui/widget/util.go +++ b/ui/widget/util.go @@ -17,10 +17,10 @@ package widget import ( + "fmt" "github.com/mattn/go-runewidth" "maunium.net/go/tcell" "maunium.net/go/tview" - "fmt" "strconv" ) |