Fix filter regression
This commit is contained in:
parent
884b843327
commit
7daa8c8c4e
|
@ -208,7 +208,7 @@ local function compute_geo(data)
|
||||||
w = data._internal.largest_item_w_v+100 > data.default_width and data._internal.largest_item_w_v+100 or data.default_width
|
w = data._internal.largest_item_w_v+100 > data.default_width and data._internal.largest_item_w_v+100 or data.default_width
|
||||||
end
|
end
|
||||||
if not data._internal.has_widget then
|
if not data._internal.has_widget then
|
||||||
return w,(total and total > 0 and total or data.rowcount*data.item_height) + (filter_tb and data.item_height or 0)
|
return w,(total and total > 0 and total or data.rowcount*data.item_height) + (data._internal.filter_tb and data.item_height or 0)
|
||||||
else
|
else
|
||||||
local h = (data.rowcount-#data._internal.widgets)*data.item_height
|
local h = (data.rowcount-#data._internal.widgets)*data.item_height
|
||||||
for k,v in ipairs(data._internal.widgets) do
|
for k,v in ipairs(data._internal.widgets) do
|
||||||
|
@ -237,6 +237,7 @@ local function new(data)
|
||||||
filter_tb:set_markup("<b>Filter:</b> "..data.filter_string)
|
filter_tb:set_markup("<b>Filter:</b> "..data.filter_string)
|
||||||
end)
|
end)
|
||||||
real_l:add(bg)
|
real_l:add(bg)
|
||||||
|
data._internal.filter_tb = filter_tb
|
||||||
else
|
else
|
||||||
real_l = l
|
real_l = l
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue