MCPcopy
hub / github.com/mum4k/termdash / MaximizeSegmentHeight

Function MaximizeSegmentHeight

widgets/segmentdisplay/options.go:85–89  ·  view source on GitHub ↗

MaximizeSegmentHeight tells the widget to maximize the height of the individual display segments. When this option is set and the user has provided more text than we can fit on the canvas, the widget will prefer to maximize height of individual characters which will result in earlier trimming of the

()

Source from the content-addressed store, hash-verified

83// on the canvas, the widget will prefer to maximize height of individual
84// characters which will result in earlier trimming of the text.
85func MaximizeSegmentHeight() Option {
86 return option(func(opts *options) {
87 opts.maximizeSegSize = true
88 })
89}
90
91// MaximizeDisplayedText tells the widget to maximize the amount of characters
92// that are displayed.

Callers 4

newControlsTabFunction · 0.92
newControlsTabFunction · 0.92
mainFunction · 0.92
TestSegmentDisplayFunction · 0.85

Calls 1

optionFuncType · 0.70

Tested by 1

TestSegmentDisplayFunction · 0.68