You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setting layout to 'fit_data_stretch' for a tabulator inside a modal does not work.
Here's an example showing the behavior :
import panel as pn
import pandas as pd
df = pd.DataFrame([["this is a long long long long line" for k in range(8)] for i in range(10)], columns=list("ABCDEFGH"))
ui = pn.template.VanillaTemplate()
b = pn.widgets.Button(name="click me")
b.on_click(lambda e: ui.open_modal())
ui.main.append(b)
ui.modal.append(pn.widgets.Tabulator(df, layout='fit_data_stretch'))
ui.servable()
this shows (the dataframe content is not stretched and goes out of the modal) :
I tried a work around with fixing the width of each columns but it does not shows the full content of the strings because the text is not wrapping itself into various lines.
maybe related to stretch issue in #6344 ?
reproduced with panel 1.3.8
The text was updated successfully, but these errors were encountered:
Again in modal, restricting a tabulator's height and width together is broking the long line display.
Here's a screenshot with height and width setted :
The expected behavior would be to have these 2 combined, with 2 scrolling bars so (first display is with width restricted and second with height) :
here's the code of the first screenshot :
import panel as pn
import pandas as pd
df = pd.DataFrame([["this is a long long long long long long line"for x in range(8)] for i in range(15)])
ui = pn.template.VanillaTemplate()
b = pn.widgets.Button(name="open modal")
b.on_click(lambda e : ui.open_modal())
ui.main.append(b)
ui.modal.append(
pn.widgets.Tabulator(
df, height=300, width=1000))
ui.servable()
Setting layout to 'fit_data_stretch' for a tabulator inside a modal does not work.
Here's an example showing the behavior :
this shows (the dataframe content is not stretched and goes out of the modal) :
I tried a work around with fixing the width of each columns but it does not shows the full content of the strings because the text is not wrapping itself into various lines.
maybe related to stretch issue in #6344 ?
reproduced with panel 1.3.8
The text was updated successfully, but these errors were encountered: