diff --git a/graphics/core.lua b/graphics/core.lua index 437f66f..63c706f 100644 --- a/graphics/core.lua +++ b/graphics/core.lua @@ -7,7 +7,7 @@ local flasher = require("graphics.flasher") local core = {} -core.version = "2.0.7" +core.version = "2.0.8" core.flasher = flasher core.events = events diff --git a/graphics/elements/controls/checkbox.lua b/graphics/elements/controls/checkbox.lua index 08e8bc5..d63ca69 100644 --- a/graphics/elements/controls/checkbox.lua +++ b/graphics/elements/controls/checkbox.lua @@ -24,7 +24,7 @@ local function checkbox(args) args.can_focus = true args.height = 1 - args.width = 3 + string.len(args.label) + args.width = 2 + string.len(args.label) -- create new graphics element base object local e = element.new(args)