Hello, I am trying to get all of my columns to automatically fit to the table view. This is what I have so far.
grid_builder = GridOptionsBuilder.from_dataframe(data_frame)
grid_builder.configure_default_column(minWidth=150)
#, maxWidth=170)
other_options = {'suppressColumnVirtualisation': True}
grid_builder.configure_grid_options(**other_options)
grid_builder.configure_column("Lines", editable=True)
grid_builder.configure_column("Hours", editable=True)
grid_builder.configure_column("BPH", editable=True)
line_inputs_table = AgGrid(
data_frame,
gridOptions=grid_builder.build(),
allow_unsafe_jscode=True,
enable_enterprise_modules=False,
columns_auto_size_mode=ColumnsAutoSizeMode.FIT_ALL_COLUMNS_TO_VIEW,
key=table_key,
)
However when doing this it causes the last column to get clipped off when the grid is apart of a tab component. Is there any fix for this besides manually setting the maxWidth?