Skip to content

Commit

Permalink
fixes #4578 - correct the way dim_props created
Browse files Browse the repository at this point in the history
  • Loading branch information
KanvaBhatia committed Jan 4, 2025
1 parent dcdcbfd commit 4c61010
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reflex/components/recharts/charts.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ def create(cls, *children, **props) -> Component:
cls._ensure_valid_dimension("height", height)

dim_props = {
"width": width or "100%",
"height": height or "100%",
"width": width if width is not None else "100%",
"height": height if height is not None else "100%",
}
# Provide min dimensions so the graph always appears, even if the outer container is zero-size.
if width is None:
Expand Down

0 comments on commit 4c61010

Please sign in to comment.