Skip to content

Commit

Permalink
expand right column
Browse files Browse the repository at this point in the history
  • Loading branch information
wagoodman committed Dec 17, 2019
1 parent 8d8c84c commit 8c6a7ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion runtime/ui/layout/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (lm *Manager) planAndLayoutColumns(g *gocui.Gui, area Area) (Area, error) {
widths[idx] = -1
}
variableColumns := len(elements)
availableWidth := area.maxX
availableWidth := area.maxX + 1

// first pass: planout the column sizes based on the given requests
for idx, element := range elements {
Expand Down
10 changes: 5 additions & 5 deletions runtime/ui/layout/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,12 @@ func Test_planAndLayoutColumns(t *testing.T) {
columns: []*testElement{newTestElement(t, -1, Area{
minX: -1,
minY: -1,
maxX: 119,
maxX: 120,
maxY: 80,
}, LocationColumn)},
expected: layoutReturn{
area: Area{
minX: 119,
minX: 120,
minY: -1,
maxX: 120,
maxY: 80,
Expand Down Expand Up @@ -214,13 +214,13 @@ func Test_planAndLayoutColumns(t *testing.T) {
newTestElement(t, -1, Area{
minX: 29,
minY: -1,
maxX: 119,
maxX: 120,
maxY: 80,
}, LocationColumn),
},
expected: layoutReturn{
area: Area{
minX: 119,
minX: 120,
minY: -1,
maxX: 120,
maxY: 80,
Expand Down Expand Up @@ -280,7 +280,7 @@ func Test_layout(t *testing.T) {
Area{
minX: -1,
minY: 0,
maxX: 119,
maxX: 120,
maxY: 79,
}, LocationColumn),
},
Expand Down

0 comments on commit 8c6a7ce

Please sign in to comment.