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

Unable to View Single Row in Table with Pagination Enabled #2325

Open nipunchamikara opened 2 months ago

nipunchamikara commented 2 months ago

Wave SDK Version, OS

v1.1.2

Actual behavior

When there is a single item in a table with pagination enabled, the item is not visible.

ui.table(
    name='table',
    pagination=ui.table_pagination(1, 10),
    columns=[ui.table_column(name='foo', label='Foo'), ui.table_column(name='bar', label='Bar')],
    rows=[
        ui.table_row(name='1', cells=['a', 'b']),
    ]
)
image

This might be part of an issue where the table resizes to show n - 1 rows when there are n rows. If there are 4 rows in the table, for example, the table automatically resizes to only show 3 rows

image

Expected behavior

The row should be visible.

Steps To Reproduce

  1. Create a table with a single row.