-
Notifications
You must be signed in to change notification settings - Fork 46
Description
Component._enforce_aspect_ratio rescales the component using the most recent component bounds as an upper bound. As a result, repeatedly changing between low and high aspect ratios will shrink the component bounds to a point.
For example, run chaco's aspect_ratio.py and click on the "Screen" (?) check box. Then, set the aspect ratio to 2, then 0.5, then 2, ... You should see a plot that shrinks to a point eventually.
Note that resizing the window (by dragging a corner of the window) will fix the plot bounds. This is because resizing resets the bounds. These "maximum bounds" are never saved because outer_bounds (a.k.a. outer_width and outer_height) gets overwritten when figuring out the plot layout.
This will probably be fixed automatically if the layout gets rewritten to use
constraints-based layouts.