Skip to content

Commit

Permalink
fix: scrollbar for popups was off if there was padding on the window
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Oct 26, 2022
1 parent b209e0b commit deda89a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/noice/view/nui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function NuiView:create()
self:update_layout()
self._scroll = Scrollbar({
winnr = self._nui.winid,
border_size = Util.nui.normalize_padding(self._opts.border),
padding = Util.nui.normalize_padding(self._opts.border),
})
self._scroll:mount()
-- NOTE: this is needed, to make sure the border is rendered properly during blocking events
Expand Down

0 comments on commit deda89a

Please sign in to comment.