diff --git a/lib/wibox/container/constraint.lua b/lib/wibox/container/constraint.lua index edc9d108..4e8a976d 100644 --- a/lib/wibox/container/constraint.lua +++ b/lib/wibox/container/constraint.lua @@ -1,4 +1,6 @@ --------------------------------------------------------------------------- +-- +--@DOC_wibox_container_defaults_constraint_EXAMPLE@ -- @author Lukáš Hrázký -- @copyright 2012 Lukáš Hrázký -- @release @AWESOME_VERSION@ diff --git a/tests/examples/wibox/container/defaults/constraint.lua b/tests/examples/wibox/container/defaults/constraint.lua new file mode 100644 index 00000000..1d4fcb88 --- /dev/null +++ b/tests/examples/wibox/container/defaults/constraint.lua @@ -0,0 +1,27 @@ +--DOC_HIDE_ALL +local wibox = require("wibox") + +return { + text = "Some long text", + align = "center", + valign = "center", + widget = wibox.widget.textbox, +}, +{ + { + { + { + text = "Some long text", + align = "center", + valign = "center", + widget = wibox.widget.textbox, + }, + strategy = "max", + height = 8, + width = 50, + widget = wibox.container.constraint + }, + layout = wibox.layout.fixed.horizontal, + }, + layout = wibox.layout.fixed.vertical, +}