Skip to content

Commit

Permalink
Directly set PosterHeaderView's backgroundColor
Browse files Browse the repository at this point in the history
This fixes an issue where the section header in full screen did not fill the full width.
  • Loading branch information
wutschel committed Dec 6, 2024
1 parent cb496d4 commit aed087a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions XBMC Remote/PosterHeaderView.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ - (id)initWithFrame:(CGRect)frame {
if (self) {
self.clipsToBounds = NO;
self.restorationIdentifier = @"posterHeaderView";

// Draw gray bar as section header background
UIView *sectionView = [[UIView alloc] initWithFrame:self.bounds];
sectionView.backgroundColor = [Utilities getGrayColor:44 alpha:1.0];
[self insertSubview: sectionView atIndex:0];
self.backgroundColor = [Utilities getGrayColor:44 alpha:1.0];

// Draw text into section header
if (self.frame.size.height > 20) {
Expand Down

0 comments on commit aed087a

Please sign in to comment.