1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-22 03:07:40 +00:00
This commit is contained in:
kepler155c@gmail.com
2017-04-05 12:35:03 -04:00
parent 72bd16502b
commit 6754eb98d3
3 changed files with 33 additions and 15 deletions

View File

@@ -3164,10 +3164,10 @@ UI.Dialog.defaults = {
function UI.Dialog:init(args)
local defaults = UI:getDefaults(UI.Dialog, args)
UI.setProperties(defaults, {
width = UI.term.width-11,
titleBar = UI.TitleBar({ previousPage = true, title = defaults.title }),
})
if not defaults.width then
defaults.width = UI.term.width-11
end
defaults.titleBar = UI.TitleBar({ previousPage = true, title = defaults.title })
--UI.setProperties(defaults, args)
UI.Page.init(self, defaults)