add width param in ToggleSwitch

pull/303/head
chrox 11 years ago
parent b96465b156
commit 3e94520e53

@ -24,6 +24,7 @@ KoptOptions = {
{
name = "trim_page",
name_text = PAGE_CROP_STR,
width = 225,
toggle = {MANUAL_STR, AUTO_STR, SEMIAUTO_STR},
alternate = false,
values = {0, 1, 2},

@ -323,6 +323,7 @@ function ConfigOption:init()
if self.options[c].toggle then
local switch = ToggleSwitch:new{
width = scaleByDPI(self.options[c].width or 216),
name = self.options[c].name,
toggle = self.options[c].toggle,
alternate = self.options[c].alternate,

Loading…
Cancel
Save