Fix clear

This commit is contained in:
Emmanuel Lepage Vallee 2013-07-23 02:12:19 -04:00
parent 9a4430ab4c
commit f399a651c5
5 changed files with 7 additions and 3 deletions

View File

@ -66,7 +66,8 @@ local function new(args)
args.style = args.style or classic_style
local ret = base(args)
ret:connect_signal("clear::menu",function(_,vis)
ret._internal.layout:reset()
local l = ret._internal.content_layout or ret._internal.layout
l:reset()
end)
ret:connect_signal("_hidden::changed",function(_,item)
item.widget:emit_signal("widget::updated")

View File

@ -8,4 +8,5 @@ return {
box = require( "radical.box" ),
style = require( "radical.style" ),
item_style = require( "radical.item_style" ),
widgets = require( "radical.widgets" ),
}

View File

@ -301,6 +301,7 @@ local function new(data)
real_l.item_fit = item_fit
real_l.setup_key_hooks = module.setup_key_hooks
real_l.setup_item = module.setup_item
data._internal.content_layout = l
return real_l
end

View File

@ -3,5 +3,6 @@ return {
scroll = require( "radical.widgets.scroll" ),
filter = require( "radical.widgets.filter" ),
fkey = require( "radical.widgets.fkey" ),
table = require( "radical.wigdets.table" ),
table = require( "radical.widgets.table" ),
header = require( "radical.widgets.header" ),
}