elvish/pkg/cli/tk
Qi Xiao d2936c06a1 Use a more sophisticated algorithm to distribute widget heights.
This is needed since there can now be an arbitrary number of widgets competing
for vertical space.

- Add a new MaxHeight method to the tk.Widget interface to provide hint on how
  to distribute the height.

- Implement the algorithm in distributeHeight in cli/app.go.
2021-09-05 01:17:46 +01:00
..
codearea_render.go Simplify the API of pkg/cli. 2021-02-11 19:24:37 +00:00
codearea_test.go pkg/cli: Pass the widget to binding bodies. 2021-02-12 21:34:47 +00:00
codearea.go Use a more sophisticated algorithm to distribute widget heights. 2021-09-05 01:17:46 +01:00
colview_test.go pkg/cli: Pass the widget to binding bodies. 2021-02-12 21:34:47 +00:00
colview.go Use a more sophisticated algorithm to distribute widget heights. 2021-09-05 01:17:46 +01:00
combobox_test.go pkg/cli/tk: De-export test utilities. 2021-02-11 22:34:38 +00:00
combobox.go Use a more sophisticated algorithm to distribute widget heights. 2021-09-05 01:17:46 +01:00
empty.go Use a more sophisticated algorithm to distribute widget heights. 2021-09-05 01:17:46 +01:00
label.go Use a more sophisticated algorithm to distribute widget heights. 2021-09-05 01:17:46 +01:00
layout_test.go Simplify the API of pkg/cli. 2021-02-11 19:24:37 +00:00
listbox_state.go Simplify the API of pkg/cli. 2021-02-11 19:24:37 +00:00
listbox_test.go pkg/cli: Pass the widget to binding bodies. 2021-02-12 21:34:47 +00:00
listbox_window_test.go Simplify the API of pkg/cli. 2021-02-11 19:24:37 +00:00
listbox_window.go Use a more sophisticated algorithm to distribute widget heights. 2021-09-05 01:17:46 +01:00
listbox.go Use a more sophisticated algorithm to distribute widget heights. 2021-09-05 01:17:46 +01:00
scrollbar.go pkg/cli/tk: Tweak the scrollbar algorithm. 2021-02-21 23:05:41 +00:00
textview_test.go pkg/cli: Pass the widget to binding bodies. 2021-02-12 21:34:47 +00:00
textview.go Use a more sophisticated algorithm to distribute widget heights. 2021-09-05 01:17:46 +01:00
utils_test.go Make tests compatible with "go test -count n" (n > 1). 2021-02-17 22:46:32 +00:00
widget_test.go pkg/cli: Pass the widget to binding bodies. 2021-02-12 21:34:47 +00:00
widget.go Use a more sophisticated algorithm to distribute widget heights. 2021-09-05 01:17:46 +01:00