Skip to content
This repository has been archived by the owner on Nov 29, 2022. It is now read-only.

Fix DZNEmptyDataSetView width with horizontal insets #428

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Source/UIScrollView+EmptyDataSet.m
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,8 @@ - (instancetype)init
- (void)didMoveToSuperview
{
CGRect superviewBounds = self.superview.bounds;
self.frame = CGRectMake(0.0, 0.0, CGRectGetWidth(superviewBounds), CGRectGetHeight(superviewBounds));
UIEdgeInsets insets = ((UIScrollView *)self.superview).contentInset;
self.frame = CGRectMake(0.0, 0.0, CGRectGetWidth(superviewBounds) - insets.right - insets.left, CGRectGetHeight(superviewBounds));

void(^fadeInBlock)(void) = ^{_contentView.alpha = 1.0;};

Expand Down