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

Wrong cornerRadius when device orientation changes #31

Open
alexmorral opened this issue Aug 10, 2015 · 2 comments
Open

Wrong cornerRadius when device orientation changes #31

alexmorral opened this issue Aug 10, 2015 · 2 comments

Comments

@alexmorral
Copy link

When the device is rotated, the cornerRadius is not updated/calculated for the current device orientation.

@yannickl
Copy link
Owner

Hi,

I can't reproduce it. How do you manage the rotation? Have you a sample code?

@alexmorral
Copy link
Author

Hi,
here is the code for initializing the progressBar:

    _progressBar.type                        = YLProgressBarTypeRounded;
    _progressBar.hideStripes                 = YES;
    _progressBar.hideTrack                   = NO;
    _progressBar.indicatorTextDisplayMode    = YLProgressBarIndicatorTextDisplayModeNone;
    _progressBar.behavior                    = YLProgressBarBehaviorDefault;
    _progressBar.progressBarInset            = 0;
    _progressBar.hideGloss                   = YES;
    _progressBar.cornerRadius                = 0; //May this line be the problem?

and here is what I use for autosizing:
autosize

The wrong bar when the device is rotated (this time from portrait to landscape):
wrongbar

and I don't manage the rotation, as in your example project you don't seem to manage it.

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

No branches or pull requests

2 participants