elkowar/eww

[BUG] scroll silently fails to render child when its parent has `:space-evenly false`

Closed this issue · 1 comments

Checklist before submitting an issue

  • I have searched through the existing closed and open issues for eww and made sure this is not a duplicate
  • I have specifically verified that this bug is not a common user error
  • I am providing as much relevant information as I am able to in this bug report (Minimal config to reproduce the issue for example, if applicable)

Description of the bug

scroll silently fails to render child when its parent has :space-evenly false, no errors posted into eww logs, scrolledwindow appears in eww inspector also as expected but nothing appears on the widget

Reproducing the issue

(defwidget somewidget []
    (box
        :orientation "v"
        :space-evenly false
        :spacing 5
        (label :text "some text" :style "...")
        (scroll 
            (box
             :orientation "v"
             :space-evenly false
             :spacing 5
             (entry :str "${hostname.Hostname}" :img "./thing.png")
             (entry :str "${hostname.KernelName} ${hostname.KernelRelease}" :img "./thing.png")
             (entry :str "${hostname.Hostname}" :img "./thing.png")
             (entry :str "${hostname.KernelName} ${hostname.KernelRelease}" :img "./thing.png")
             (entry :str "${hostname.Hostname}" :img ",/thing.png")
             (entry :str "${hostname.KernelName} ${hostname.KernelRelease}" :img "./thing.png")
            )
        )
    )
)

Removing the "some text" label doesn't fix the issue, only making the main child box of the widget :space-evenly true fixes the issue

Expected behaviour

The entrys should be displayed normally

currently it looks like this:

image

if :space-evenly true is set for the parent widget it looks like this and scrolls as expected

image

Additional context

No response

Found the problem, the scroll widget needed a specific height to be set when :space-evenly was set to false.