h2oai / wave

Realtime Web Apps and Dashboards for Python and R
https://wave.h2o.ai
Apache License 2.0
3.9k stars 323 forks source link

wave1.0.0 ui.inline() default value for justify is not "start" #2267

Closed pascal-pfeiffer closed 4 months ago

pascal-pfeiffer commented 4 months ago

Wave SDK Version, OS

v.1.0.0, Ubuntu, Chrome

Actual behavior

Apparently wave 1.0.0 changed the default behavior of ui.inline(). In my app, I had to manually add justify="start" which, by the documentation should be the default value. In previous wave versions, it appears to be correct.

Expected behavior

default value of justify is "start" as documented.

justify: Specifies how to lay out the individual components. Defaults to 'start'. One of 'start', 'end', 'center', 'between', 'around'. See enum h2o_wave.ui.InlineJustify.

Steps To Reproduce

minimum example:

ui.inline(
    [
        ui.text_m("**some bold text**"),
        ui.button(name="my_button", icon="Edit", tooltip="My Button"),
    ],
)

image

vs.

ui.inline(
    [
        ui.text_m("**some bold text**"),
        ui.button(name="my_button", icon="Edit", tooltip="My Button"),
    ],
    justify="start",
)

image