THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#1218 - Scrolling layout
User who did this - Uli Schlachter (psychon)

----------
Using huge breaks widgets which just return its arguments in the fit function 
(fit = function(_, ...) return ... end)

Also, I can't get this to work / do anything useful (see comments for 
individual issues):

local w = wibox({ x = 20, y = 20, width = 100, height = 100, visible = true })
local empty = wibox.widget.base.empty_widget()
empty.fit = function(_, w, h) return 200, 200 end
local bg = wibox.widget.background(empty, {
   type = "linear", from = { 0, 0 }, to = { 200, 200 },
   stops = { { 0, "#00ff00" }, { 0.5, "#ff0000" }, { 0.5, "#00ff00" }, { 1, 
"#0000ff" } }
})
local scroll1 = wibox.layout.scroll.horizontal()
scroll1:add(bg)
local scroll2 = wibox.layout.scroll.horizontal()
scroll2:add(bg)
local c1 = wibox.layout.constraint(scroll1, "exact", 100, 50)
local c2 = wibox.layout.constraint(scroll2, "exact", 50, 50)
local c3 = wibox.layout.constraint(scroll2, "exact", 50, 50)
local h = wibox.layout.fixed.horizontal()
h:add(c2)
h:add(c3)
local f = wibox.layout.fixed.vertical()
f:add(c1)
f:add(h)
w:set_widget(f)

scroll1:to_end()
scroll2:to_end() -- Doesn't work

local t = timer({ timeout = 0.1 })
t:connect_signal("timeout", function()
   -- Would be nice to know the maximum value here and be able to reset things
   -- (e.g. so that I can have this go from 0% to 100% and back)
   scroll1:scroll(1)
   scroll2:scroll(1)
end)
t:start()
----------

More information can be found at the following URL:
https://awesome.naquadah.org/bugs/index.php?do=details&task_id=1218#comment3851

You are receiving this message because you have requested it from the Flyspray 
bugtracking system.  If you did not expect this message or don't want to 
receive mails in future, you can change your notification settings at the URL 
shown above.

--
To unsubscribe, send mail to awesome-devel-unsubscr...@naquadah.org.

Reply via email to