Skip to content

Commit 71c237e

Browse files
committed
Merge pull request #82 from sunkehappy/patch-1
Remove one useless variable height
2 parents 56f020c + 53a3c25 commit 71c237e

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Classes/NavigationController/UINavigationController+M13ProgressViewBar.m

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -250,20 +250,13 @@ - (void)drawIndeterminateWithInterfaceOrientation:(UIInterfaceOrientation)interf
250250
//Calculate the frame of the navigation bar, based off the orientation.
251251
CGSize screenSize = [UIScreen mainScreen].bounds.size;
252252
CGFloat width = 0.0;
253-
CGFloat height = 0.0;
254253
//Calculate the width of the screen
255254
if (UIInterfaceOrientationIsLandscape(interfaceOrientation)) {
256255
//Use the maximum value
257256
width = MAX(screenSize.width, screenSize.height);
258-
if ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPhone) {
259-
height = 32.0; //Hate hardcoding values, but autolayout doesn't work, and cant retreive the new height until after the animation completes.
260-
} else {
261-
height = 44.0; //Hate hardcoding values, but autolayout doesn't work, and cant retreive the new height until after the animation completes.
262-
}
263257
} else {
264258
//Use the minimum value
265259
width = MIN(screenSize.width, screenSize.height);
266-
height = 44.0; //Hate hardcoding values, but autolayout doesn't work, and cant retreive the new height until after the animation completes.
267260
}
268261

269262
//Create the pattern image

0 commit comments

Comments
 (0)