aggrid style is strange when using left_drawer #2850
-
QuestionI have use aggrid combined with left drawer. When click button to show/hide the left drawer, aggrid style is strange, not fully fill the width. from nicegui import ui
rows = [
{'name': 'Alice', 'age': 18},
{'name': 'Bob', 'age': 21},
]
left_drawer = ui.left_drawer(value=True).classes('bg-blue-100')
ui.button('click', on_click=left_drawer.toggle)
grid = ui.aggrid({
'columnDefs': [
{'headerName': 'Name', 'field': 'name'},
{'headerName': 'Age', 'field': 'age'},
],
'rowData': rows,
})
ui.run() |
Beta Was this translation helpful? Give feedback.
Answered by
falkoschindler
Apr 8, 2024
Replies: 1 comment
-
Thanks for bringing this up, @tz301! |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tz301
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for bringing this up, @tz301!
It seems to be a more general bug with
ui.aggrid
's resizing mechanism. I created issue #2852.