Skip to content

Commit

Permalink
Use binary operation when combining autoresizing masks
Browse files Browse the repository at this point in the history
  • Loading branch information
wutschel committed Jan 20, 2024
1 parent caf4cdd commit 4aa3473
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions XBMC Remote/ViewControllerIPad.m
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ - (void)viewDidLoad {
[self createLeftMenu:maxMenuItems];

rootView = [[UIViewExt alloc] initWithFrame:CGRectMake(0, deltaY, self.view.frame.size.width, self.view.frame.size.height - deltaY)];
rootView.autoresizingMask = UIViewAutoresizingFlexibleWidth + UIViewAutoresizingFlexibleHeight;
rootView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
rootView.backgroundColor = UIColor.clearColor;

fanartBackgroundImage = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
Expand All @@ -480,11 +480,11 @@ - (void)viewDidLoad {
[self.view addSubview:fanartBackgroundImage];

rightSlideView = [[UIView alloc] initWithFrame:CGRectMake(PAD_MENU_TABLE_WIDTH, 0, rootView.frame.size.width - PAD_MENU_TABLE_WIDTH, rootView.frame.size.height - TOOLBAR_HEIGHT)];
rightSlideView.autoresizingMask = UIViewAutoresizingFlexibleWidth + UIViewAutoresizingFlexibleHeight;
rightSlideView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;

stackScrollViewController = [StackScrollViewController new];
stackScrollViewController.view.frame = CGRectMake(0, 0, rightSlideView.frame.size.width, rightSlideView.frame.size.height);
stackScrollViewController.view.autoresizingMask = UIViewAutoresizingFlexibleWidth + UIViewAutoresizingFlexibleHeight;
stackScrollViewController.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
[rightSlideView addSubview:stackScrollViewController.view];

[rootView addSubview:leftMenuView];
Expand Down

0 comments on commit 4aa3473

Please sign in to comment.