awesome/spec
Lucas Schwiderski 51424b5da9
bug(w.l.fixed): Fix drawing to infinite available space
With the overflow layout, it is now possible to allow theoretically
infinite space for widgets to draw into. The `fixed` layout was broken
for this use case.

To determine the total amount of space used by its child widgets, the
`fixed` layout would subtract their size from the total available space
during `:fit` and keep that as a "remaining size" variable.
However, `Infinity - x == Infinity` (when `x < Infinity`).

So `:fit` would always end up with a calculation `needed_size =
available_size - size_left` or `x = Infinity - Infinity`, which is `0`.
So with infinite space available, the `fixed` layout would actually
report a size of `0`.

See also discussion at
https://github.com/awesomeWM/awesome/pull/3309#issuecomment-997191875

Signed-off-by: Lucas Schwiderski <lucas@lschwiderski.de>
2021-12-18 14:20:48 +01:00
..
awful test(spec: prompt): add for backspace, ^h, ^f, ^b and fix shim :wlen() implementation 2021-06-11 04:54:46 +02:00
beautiful test(spec: beautiful: get_font): convert user object to string before comparison (#3348) 2021-05-23 21:23:33 -07:00
gears tests: Improve gears.matcher tests. 2021-10-22 23:13:26 -07:00
menubar Aligning 'regex' with other PR / Minor readability improvements 2019-02-09 19:21:46 +11:00
wibox bug(w.l.fixed): Fix drawing to infinite available space 2021-12-18 14:20:48 +01:00
preload.lua beautiful.init: Fix return values and improve doco. fixes: #2588 #2592 2019-01-25 22:56:41 +11:00