Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: use getters for flyout width and height. #8564

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

gonfunko
Copy link
Contributor

@gonfunko gonfunko commented Sep 3, 2024

The basics

The details

Proposed Changes

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: gonfunko/scratch-blocks#153

@gonfunko gonfunko merged commit cb1c055 into google:rc/v12.0.0 Sep 3, 2024
11 checks passed
@gonfunko gonfunko deleted the flyout-width branch September 3, 2024 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants