Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UserWarning incorrectly emitted when using negative column widths for ui.layout_columns #1704

Open
maxime-bodifee opened this issue Sep 25, 2024 · 0 comments

Comments

@maxime-bodifee
Copy link

Minimal reproducible example

from shiny import App, render, ui

app_ui = ui.page_fluid(
    ui.layout_columns(
        ui.output_text("greeting"),
        col_widths=(-1, 1),
    ),
)

def server(inputs, outputs, session):
    @render.text
    def greeting():
        return "Hello, world!"

app = App(app_ui, server)

Output
UserWarning: More column widths than children at breakpoint 'sm', extra widths will be ignored.

Expected output
No warning, as negative widths shouldn't be counted when comparing the number of widths vs. the number of children

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant