YLProgressBar icon indicating copy to clipboard operation
YLProgressBar copied to clipboard

Wrong cornerRadius when device orientation changes

Open alexmorral opened this issue 9 years ago • 2 comments

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

alexmorral avatar Aug 10 '15 07:08 alexmorral

Hi,

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

yannickl avatar Aug 14 '15 14:08 yannickl

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

alexmorral avatar Aug 15 '15 10:08 alexmorral