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

Redraw on bounds change to avoid stretching the indicators #16

Conversation

idpaterson
Copy link
Contributor

If the bounds of the SMPageControl change, the indicators are currently not redrawn which leads to stretched graphics.

Given the following page control in portrait orientation that fills the width of the screen
smpagecontrol_portrait

rotating to landscape orientation where the control still fills the width of the screen stretches the dots.
smpagecontrol_landscape

After the change in this pull request, the dots are properly redrawn automatically whenever the bounds of the SMPageControl change.
smpagecontrol_landscape2

… avoid stretching or compressing the indicators.
jerryhjones added a commit that referenced this pull request Dec 9, 2013
…-change

Redraw on bounds change to avoid stretching the indicators
@jerryhjones jerryhjones merged commit f5382b5 into Spaceman-Labs:master Dec 9, 2013
@jerryhjones
Copy link
Member

👍 Nice find, and a nice clean fix. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants