This PR updates the flyout classes to use the pre-existing getWidth() and getHeight() methods instead of directly accessing the corresponding instance variables. This broadly improves code health, and concretely allows subclasses to e.g. enforce a fixed/maximum width or height by overriding the appropriate getter. This is needed by Scratch: https://github.com/gonfunko/scratch-blocks/issues/153
The basics
The details
Proposed Changes
This PR updates the flyout classes to use the pre-existing
getWidth()
andgetHeight()
methods instead of directly accessing the corresponding instance variables. This broadly improves code health, and concretely allows subclasses to e.g. enforce a fixed/maximum width or height by overriding the appropriate getter. This is needed by Scratch: https://github.com/gonfunko/scratch-blocks/issues/153