Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
remove file, fix
  • Loading branch information
kushalkolar committed May 16, 2025
commit de02acbee5c87a13dab7762bac04872604532bd0
50 changes: 0 additions & 50 deletions examples/guis/many_ui.py

This file was deleted.

23 changes: 0 additions & 23 deletions fastplotlib/ui/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,6 @@ def get_rect(self) -> tuple[int, int, int, int]:
width_canvas, height_canvas = self._figure.canvas.get_logical_size()

match self._location:
case "top":
x_pos, y_pos = (0, 0)
width, height = (width_canvas, self.size)

case "bottom":
x_pos = 0
y_pos = height_canvas - self.size
Expand All @@ -181,25 +177,6 @@ def get_rect(self) -> tuple[int, int, int, int]:
x_pos, y_pos = (width_canvas - self.size, 0)
width, height = (self.size, height_canvas)

if self._figure.guis["top"]:
# if there is a GUI in the top edge, make this one below
y_pos += self._figure.guis["top"].size
# reduce height
height -= self._figure.guis["top"].size

if self._figure.guis["bottom"] is not None:
height -= self._figure.guis["bottom"].size

case "left":
x_pos, y_pos = (0, 0)
width, height = (self.size, height_canvas)

if self._figure.guis["top"]:
# if there is a GUI in the top edge, make this one below
y_pos += self._figure.guis["top"].size
# reduce height
height -= self._figure.guis["top"].size

if self._figure.guis["bottom"] is not None:
height -= self._figure.guis["bottom"].size

Expand Down