Skip to content

page_fillable()'s fillable_mobile=False no longer works as intended  #858

@cpsievert

Description

@cpsievert

For example, the plot here always fills the page (even in a small width window)

from shiny import App, render, ui

app_ui = ui.page_fillable(
    ui.output_plot("plt")
)

def server(input, output, session):

    @render.plot()
    def plt():
        import matplotlib.pyplot as plt
        import numpy as np
        x = np.linspace(0, 2 * np.pi, 100)
        y = np.sin(x * 50)
        fig, ax = plt.subplots()
        ax.plot(x, y)
        return fig

app = App(app_ui, server)

Looks like this problem was recently introduced by #819

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions