fix: render instance list vertically
This commit is contained in:
@@ -160,6 +160,7 @@ func NewShell(theme *material.Theme) *Shell {
|
|||||||
s.logDir.SetText(`C:\Users\Public\chub\logs`)
|
s.logDir.SetText(`C:\Users\Public\chub\logs`)
|
||||||
s.closeOnExit.Value = true
|
s.closeOnExit.Value = true
|
||||||
s.browserKind.Value = "chrome"
|
s.browserKind.Value = "chrome"
|
||||||
|
s.list.Axis = layout.Vertical
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"gioui.org/layout"
|
||||||
"gioui.org/widget/material"
|
"gioui.org/widget/material"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -21,6 +22,13 @@ func TestShellStartsWithSemanticInstanceStatuses(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestShellInstanceListScrollsVertically(t *testing.T) {
|
||||||
|
shell := NewShell(material.NewTheme())
|
||||||
|
if shell.list.Axis != layout.Vertical {
|
||||||
|
t.Fatalf("instance list axis = %v, want vertical", shell.list.Axis)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func TestShellInstanceRowsContainRequiredColumnsAndIndependentActionControls(t *testing.T) {
|
func TestShellInstanceRowsContainRequiredColumnsAndIndependentActionControls(t *testing.T) {
|
||||||
shell := NewShell(material.NewTheme())
|
shell := NewShell(material.NewTheme())
|
||||||
if len(shell.rows) < 2 {
|
if len(shell.rows) < 2 {
|
||||||
|
|||||||
Reference in New Issue
Block a user