awesome/lib/wibox/widget
Uli Schlachter 1e442c97c8 imagebox: Don't try to scale by infinite (FS#1248)
When an imagebox was drawn with width or height zero, it tried to calculate the
needed scale factor for making the image fit. Sadly, this would be a division by
zero aka infinite in this case.

Fix this by just not drawing anything if there is no space available.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2014-04-02 22:50:13 +02:00
..
background.lua.in wibox: Improve constructor functions for some layouts 2013-03-10 13:46:28 +01:00
base.lua.in wibox: Add widget geometry cache 2013-08-21 12:26:47 +02:00
imagebox.lua.in imagebox: Don't try to scale by infinite (FS#1248) 2014-04-02 22:50:13 +02:00
init.lua.in Fix warnings from LDoc 2012-11-19 15:35:32 +01:00
systray.lua.in wibox.wibox.systray: Allow multiple systrays 2013-03-10 11:11:43 +01:00
textbox.lua.in wibox.widget.textbox: return 0, 0 from fit() if either w or h is 0 2013-02-20 13:08:27 +01:00