Fixed opener sizing
This commit is contained in:
parent
c1caa5dc12
commit
41965454c7
1 changed files with 2 additions and 2 deletions
|
|
@ -541,8 +541,8 @@ impl Visual for Opener {
|
|||
.options
|
||||
.requested_height()
|
||||
.max(1)
|
||||
.min(frame.size()[1] * 2 / 3);
|
||||
let preview_sz = frame.size()[1].saturating_sub(options_sz);
|
||||
.min(frame.size()[1] / 2);
|
||||
let preview_sz = frame.size()[1].saturating_sub(options_sz + path_input_sz);
|
||||
|
||||
if let Some((buffer, cursor_id, input)) = &mut self.preview {
|
||||
frame.rect([0, 0], [frame.size()[0], preview_sz]).with(|f| {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue