yes, I'm very commit lazy
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
-- @supermodule wibox.widget.base
|
||||
---------------------------------------------------------------------------
|
||||
|
||||
---@diagnostic disable-next-line: deprecated
|
||||
local unpack = unpack or table.unpack -- luacheck: globals unpack (compatibility with Lua 5.1)
|
||||
local base = require("wibox.widget.base")
|
||||
local table = table
|
||||
@@ -363,7 +364,7 @@ function fixed:fit(context, orig_width, orig_height)
|
||||
local is_enough
|
||||
|
||||
if is_y then
|
||||
is_enough = h > 0 and height_left >= h
|
||||
is_enough = height_left >= h
|
||||
|
||||
if is_enough then
|
||||
used_max = math.max(used_max, w)
|
||||
|
||||
Reference in New Issue
Block a user