fix: Initialize detailsViewport in NewModel to enable scrolling
This commit is contained in:
@@ -241,15 +241,16 @@ func NewModel() Model {
|
|||||||
vp.YPosition = 0
|
vp.YPosition = 0
|
||||||
|
|
||||||
return Model{
|
return Model{
|
||||||
currentView: ViewDashboard,
|
currentView: ViewDashboard,
|
||||||
subView: SubViewNone,
|
subView: SubViewNone,
|
||||||
networkMap: nm,
|
networkMap: nm,
|
||||||
callFlowStore: sip.NewCallFlowStore(),
|
callFlowStore: sip.NewCallFlowStore(),
|
||||||
lastPackets: make([]string, 0, 50),
|
lastPackets: make([]string, 0, 50),
|
||||||
sshConfig: NewSSHConfigModel(),
|
sshConfig: NewSSHConfigModel(),
|
||||||
nodeInput: createNodeInputs(),
|
nodeInput: createNodeInputs(),
|
||||||
viewport: vp,
|
viewport: vp,
|
||||||
styles: defaultStyles(),
|
detailsViewport: viewport.New(0, 0),
|
||||||
|
styles: defaultStyles(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user