Skip to content

Commit 92ed3c4

Browse files
committed
fix(view): call get size after setting the height
fixes bottom and top placement for the tree fixes #1311
1 parent 3aeb59b commit 92ed3c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-tree/view.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,8 @@ function M.setup(opts)
396396
M.View.adaptive_size = options.adaptive_size
397397
M.View.side = options.side
398398
M.View.width = options.width
399-
M.View.initial_width = get_size()
400399
M.View.height = options.height
400+
M.View.initial_width = get_size()
401401
M.View.hide_root_folder = options.hide_root_folder
402402
M.View.preserve_window_proportions = options.preserve_window_proportions
403403
M.View.winopts.number = options.number

0 commit comments

Comments
 (0)