bug(w.l.overflow): Fix resetting the widget
This commit is contained in:
parent
29cfdc1a0a
commit
d4a2fb06b0
|
@ -476,6 +476,20 @@ function overflow:get_scrollbar_widget()
|
|||
return self._private.scrollbar_widget
|
||||
end
|
||||
|
||||
|
||||
function overflow:reset()
|
||||
self._private.widgets = {}
|
||||
self._private.scroll_factor = 0
|
||||
|
||||
local scrollbar_widget = separator({ shape = gshape.rectangle })
|
||||
apply_scrollbar_mouse_signal(self, scrollbar_widget)
|
||||
self._private.scrollbar_widget = scrollbar_widget
|
||||
|
||||
self:emit_signal("widget::layout_changed")
|
||||
self:emit_signal("widget::reset")
|
||||
self:emit_signal("widget::reseted")
|
||||
end
|
||||
|
||||
local function new(dir, ...)
|
||||
local ret = fixed[dir](...)
|
||||
|
||||
|
|
Loading…
Reference in New Issue