fix(awful: hotkeys_popup: widget: create_group_columns): correct max label height detection

This commit is contained in:
actionless 2020-09-03 04:20:05 +02:00
parent 7a759432d3
commit 901bb3d88e
1 changed files with 4 additions and 1 deletions

View File

@ -438,7 +438,10 @@ function widget.new(args)
end
function widget_instance:_create_group_columns(column_layouts, group, keys, s, wibox_height)
local line_height = beautiful.get_font_height(self.font)
local line_height = math.max(
beautiful.get_font_height(self.font),
beautiful.get_font_height(self.description_font)
)
local group_label_height = line_height + self.group_margin
-- -1 for possible pagination:
local max_height_px = wibox_height - group_label_height