fix(file): use height parameter as max height#975
fix(file): use height parameter as max height#975davidferneding wants to merge 1 commit intocharmbracelet:mainfrom
Conversation
While adding the padding parameter to file, the component has been refactored to use `m.filepicker.SetHeight` instead of the deprecated property `m.filepicker.Height`. Since this change, the size has been calculated based of the window height, overriding the value passed with `--height`. This adds a new `maxHeight` property to constrain the maximum height of the file picker to the value passed by `--height`. Refs: 6045525, charmbracelet#969
|
Hello @davidferneding, I try your solution to solve the bug in
|
|
Sorry @tree-1917, I totally forgot to reply. The changes in 6045525 changed two things for the The other change is, that the Before v0.17.0, the In v0.17.0, the command clears the screen and uses all available space. This pr fixes the height behaviour. |



While adding the padding parameter to file, the component has been refactored to use
m.filepicker.SetHeightinstead of the deprecated propertym.filepicker.Height. Since this change, the size has been calculated based on the window height, overriding the value passed with--height.This adds a new
maxHeightproperty to constrain the maximum height of the file picker to the value passed by--height. The current behaviour of constraining the height to the window height has been preserved.Refs: 6045525
Fixes #969