Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,12 @@ def _set_dimensions(self, width: int | float | None = None, height: int | float
""" Called when desired dimensions change """
if width is not None:
self._desired_width = width
if "width" in getattr(self, "_theme_info", {}):
self._theme_info["width"] = width
if height is not None:
self._desired_height = height
if "height" in getattr(self, "_theme_info", {}):
self._theme_info["height"] = height

super().configure(width=self._apply_scaling(self._desired_width),
height=self._apply_scaling(self._desired_height))
Expand Down