Skip to content

Commit

Permalink
feat(ui): increase window height (#719)
Browse files Browse the repository at this point in the history
  • Loading branch information
williamboman committed Dec 2, 2022
1 parent 4a90879 commit 22129c7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lua/mason-core/ui/display.lua
Original file line number Diff line number Diff line change
Expand Up @@ -170,15 +170,15 @@ M._render_node = render_node
---@param opts WindowOpts
---@param sizes_only boolean Whether to only return properties that control the window size.
local function create_popup_window_opts(opts, sizes_only)
local win_height = vim.o.lines - vim.o.cmdheight - 2 -- Add margin for status and buffer line
local win_width = vim.o.columns
local height = math.floor(win_height * 0.9)
local width = math.floor(win_width * 0.8)
local columns = vim.o.columns
local top_offset = 1
local height = vim.o.lines - vim.o.cmdheight - top_offset
local width = math.floor(columns * 0.8)
local popup_layout = {
height = height,
width = width,
row = math.floor((win_height - height) / 2),
col = math.floor((win_width - width) / 2),
row = top_offset,
col = math.floor((columns - width) / 2),
relative = "editor",
style = "minimal",
zindex = 45,
Expand Down

0 comments on commit 22129c7

Please sign in to comment.