doc: Add a `constraint` default screenshot

This commit is contained in:
Emmanuel Lepage Vallee 2016-05-24 13:53:21 -04:00
parent de7ae79c6c
commit 26cf28b23b
2 changed files with 29 additions and 0 deletions

View File

@ -1,4 +1,6 @@
---------------------------------------------------------------------------
--
--@DOC_wibox_container_defaults_constraint_EXAMPLE@
-- @author Lukáš Hrázký
-- @copyright 2012 Lukáš Hrázký
-- @release @AWESOME_VERSION@

View File

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