add width param in ToggleSwitch

This commit is contained in:
chrox
2013-10-13 23:10:31 +08:00
parent b96465b156
commit 3e94520e53
2 changed files with 2 additions and 0 deletions

View File

@@ -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},

View File

@@ -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,