mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
fix: stop self.dimen polution for inputcontainers
Without this fix, self.dimen is shared among all inputcontainers intances, which breaks some of the UI rendering. All widget should set/initialize their own self.dimen in self:init() method.
This commit is contained in:
@@ -31,8 +31,8 @@ definition.
|
||||
--]]
|
||||
function Widget:new(o)
|
||||
o = self:extend(o)
|
||||
-- Both o._init and o.init are called on object create. But o._init is used
|
||||
-- for base widget initialization (basic component used to build other
|
||||
-- Both o._init and o.init are called on object creation. But o._init is
|
||||
-- used for base widget initialization (basic component used to build other
|
||||
-- widgets). While o.init is for higher level widgets, for example Menu
|
||||
-- Widget
|
||||
if o._init then o:_init() end
|
||||
|
||||
Reference in New Issue
Block a user