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

Blank area above the table #215

Open
rafa-guedes opened this issue May 2, 2023 · 1 comment
Open

Blank area above the table #215

rafa-guedes opened this issue May 2, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@rafa-guedes
Copy link

rafa-guedes commented May 2, 2023

My table is defined on the sidebar and there is a blank area that is rendered above it as shown on the image below. This was not occurring when I first wrote this app in February or so, it may have been introduced after some release of streamlit. I am currently running the latest version of streamlit==1.22.0.

Inspecting this element gives me the following:

<div class="ag-row-odd ag-row-no-focus ag-row ag-row-level-0 ag-row-position-absolute"><div class=""><div class="ag-cell-wrapper"></div></div></div>

Thanks

image

@gustavjohansen98
Copy link

Use the custom_css param.

response = st_aggrid.AgGrid(
    df,
    gridOptions=builder.build(),
    custom_css={
        "#gridToolBar": {
            "padding-bottom": "0px !important",
        }
    }
)

Versions:

  • streamlit 1.22.0
  • streamlit-aggrid 0.3.4.post3

@PablocFonseca PablocFonseca added the bug Something isn't working label Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants