Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.

Commit 27c2996

Browse files
Merge pull request #387 from wordpress-mobile/issue/386-empty-view-placement
Fix: incorrect placement of empty view in picker
2 parents 22b585b + 0c09a04 commit 27c2996

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Pod/Classes/WPMediaPickerViewController.m

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1451,10 +1451,9 @@ - (void)centerEmptyView
14511451

14521452
if ([self.searchBar.text isEqualToString:@""]) {
14531453
emptyViewFrame.origin.y -= self.searchBar.frame.size.height/2;
1454-
} else {
1455-
emptyViewFrame.origin.y = self.searchBarTopConstraint.constant;
14561454
}
1457-
1455+
emptyViewFrame.size.height -= self.view.layoutMargins.bottom;
1456+
emptyViewFrame.size.height -= self.view.layoutMargins.top;
14581457
_emptyViewController.view.frame = emptyViewFrame;
14591458
} else {
14601459
self.emptyView.center = self.collectionView.center;

WPMediaPicker.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Pod::Spec.new do |s|
44
s.name = 'WPMediaPicker'
5-
s.version = '1.8.3'
5+
s.version = '1.8.3-beta.1'
66

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

0 commit comments

Comments
 (0)