InputDialog: fix adding widget with 'use available height'#15010
Conversation
| if self.use_available_height then | ||
| self.text_height = nil | ||
| self:init() | ||
| end |
There was a problem hiding this comment.
This self:init() inside InputDialog:addWidget() feels like we may get caught in a loop, as :init() can call :addWidget().
Are there conditions that prevent that from happening ? (If any, a comment saying so and why would provide some comfort :))
There was a problem hiding this comment.
Yes, init calls addWidget with re_init=true:
koreader/frontend/ui/widget/inputdialog.lua
Line 470 in 7c33042
addWidget calls init within
koreader/frontend/ui/widget/inputdialog.lua
Line 507 in 7c33042
|
yay thanks for the fix! |
|
@hius07 the fix only works if i change the |
|
You should indeed just use |
Cool thanks for the tip @poire-z |
This change is