MCPcopy
hub / github.com/docker/docker-agent / GetLayer

Method GetLayer

pkg/tui/components/notification/notification.go:283–292  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

281}
282
283func (n *Manager) GetLayer() *lipgloss.Layer {
284 if len(n.items) == 0 {
285 return nil
286 }
287
288 view := n.View()
289 row, col := n.position()
290
291 return lipgloss.NewLayer(view).X(col).Y(row)
292}
293
294func (n *Manager) position() (row, col int) {
295 bounds := n.itemBounds()

Callers 3

ViewMethod · 0.80

Calls 2

ViewMethod · 0.95
positionMethod · 0.95

Tested by 2