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

Commit e612d4a

Browse files
TheAdamBorekIgnacio Romero Zurbuchen
authored andcommitted
Makes sure that EmptyDataSetView has always it's origin as (0, 0). Fix for #205 (#293)
* Makes sure that EmptyDataSetView has always it's origin as 0,0. Fix for #205 * Changes typo to fit into project code style * Pull Request fixes
1 parent e7e101b commit e612d4a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Source/UIScrollView+EmptyDataSet.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ - (void)dzn_reloadEmptyDataSet
533533
[view setupConstraints];
534534

535535
[UIView performWithoutAnimation:^{
536-
[view layoutIfNeeded];
536+
[view layoutIfNeeded];
537537
}];
538538

539539
// Configure scroll permission
@@ -735,7 +735,8 @@ - (instancetype)init
735735

736736
- (void)didMoveToSuperview
737737
{
738-
self.frame = self.superview.bounds;
738+
CGRect superviewBounds = self.superview.bounds;
739+
self.frame = CGRectMake(0, 0, CGRectGetWidth(superviewBounds), CGRectGetHeight(superviewBounds));
739740

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

@@ -749,7 +750,6 @@ - (void)didMoveToSuperview
749750
}
750751
}
751752

752-
753753
#pragma mark - Getters
754754

755755
- (UIView *)contentView

0 commit comments

Comments
 (0)