Skip to content

Commit

Permalink
Merge pull request #387 from wordpress-mobile/issue/386-empty-view-pl…
Browse files Browse the repository at this point in the history
…acement

Fix: incorrect placement of empty view in picker
  • Loading branch information
hassaanelgarem authored May 9, 2022
2 parents 22b585b + 0c09a04 commit 27c2996
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Pod/Classes/WPMediaPickerViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -1451,10 +1451,9 @@ - (void)centerEmptyView

if ([self.searchBar.text isEqualToString:@""]) {
emptyViewFrame.origin.y -= self.searchBar.frame.size.height/2;
} else {
emptyViewFrame.origin.y = self.searchBarTopConstraint.constant;
}

emptyViewFrame.size.height -= self.view.layoutMargins.bottom;
emptyViewFrame.size.height -= self.view.layoutMargins.top;
_emptyViewController.view.frame = emptyViewFrame;
} else {
self.emptyView.center = self.collectionView.center;
Expand Down
2 changes: 1 addition & 1 deletion WPMediaPicker.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Pod::Spec.new do |s|
s.name = 'WPMediaPicker'
s.version = '1.8.3'
s.version = '1.8.3-beta.1'

s.summary = 'WPMediaPicker is an iOS controller that allows capture and picking of media assets.'
s.description = <<-DESC
Expand Down

0 comments on commit 27c2996

Please sign in to comment.