Skip to content

Commit

Permalink
Merge branch 'master' into TIMOB-25727
Browse files Browse the repository at this point in the history
  • Loading branch information
hansemannn committed Jan 28, 2018
2 parents 18c249c + 7597179 commit 39983a2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
"hinttextid",
"showCancel",
"barColor",
TiC.PROPERTY_COLOR,
TiC.PROPERTY_HINT_TEXT_COLOR,
TiC.PROPERTY_VALUE
})
// clang-format on
Expand Down
6 changes: 3 additions & 3 deletions iphone/Classes/TiUIListView.m
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ - (void)updateSearchControllerFrames
if (![searchController isActive]) {
return;
}
[dimmingView setFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
[dimmingView setFrame:CGRectMake(0, searchController.searchBar.frame.size.height, self.frame.size.width, self.frame.size.height - searchController.searchBar.frame.size.height)];
CGPoint convertedOrigin = [self.superview convertPoint:self.frame.origin toView:searchControllerPresenter.view];

UIView *searchSuperView = [searchController.view superview];
Expand Down Expand Up @@ -2345,7 +2345,7 @@ - (void)handleTap:(UITapGestureRecognizer *)tapGestureRecognizer
- (void)createDimmingView
{
if (dimmingView == nil) {
dimmingView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
dimmingView = [[UIView alloc] initWithFrame:CGRectMake(0, searchController.searchBar.frame.size.height, self.frame.size.width, self.frame.size.height - searchController.searchBar.frame.size.height)];
dimmingView.backgroundColor = [UIColor blackColor];
dimmingView.alpha = .2;
UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(dismissSearchController)];
Expand All @@ -2355,7 +2355,7 @@ - (void)createDimmingView

- (void)showDimmingView
{
dimmingView.frame = CGRectMake(0, 0, self.frame.size.width, self.frame.size.height);
dimmingView.frame = CGRectMake(0, searchController.searchBar.frame.size.height, self.frame.size.width, self.frame.size.height - searchController.searchBar.frame.size.height);
if (!dimmingView.superview) {
[self addSubview:dimmingView];
[self bringSubviewToFront:dimmingView];
Expand Down
6 changes: 3 additions & 3 deletions iphone/Classes/TiUITableView.m
Original file line number Diff line number Diff line change
Expand Up @@ -1438,7 +1438,7 @@ - (void)updateSearchControllerFrames
if (![searchController isActive]) {
return;
}
[dimmingView setFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
[dimmingView setFrame:CGRectMake(0, searchController.searchBar.frame.size.height, self.frame.size.width, self.frame.size.height - searchController.searchBar.frame.size.height)];
CGPoint convertedOrigin = [self.superview convertPoint:self.frame.origin toView:searchControllerPresenter.view];

UIView *searchSuperView = [searchController.view superview];
Expand Down Expand Up @@ -2353,7 +2353,7 @@ - (void)viewGetFocus
- (void)createDimmingView
{
if (dimmingView == nil) {
dimmingView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
dimmingView = [[UIView alloc] initWithFrame:CGRectMake(0, searchController.searchBar.frame.size.height, self.frame.size.width, self.frame.size.height - searchController.searchBar.frame.size.height)];
dimmingView.backgroundColor = [UIColor blackColor];
dimmingView.alpha = .2;
UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(dismissSearchController)];
Expand All @@ -2363,7 +2363,7 @@ - (void)createDimmingView

- (void)showDimmingView
{
dimmingView.frame = CGRectMake(0, 0, self.frame.size.width, self.frame.size.height);
dimmingView.frame = CGRectMake(0, searchController.searchBar.frame.size.height, self.frame.size.width, self.frame.size.height - searchController.searchBar.frame.size.height);
if (!dimmingView.superview) {
[self addSubview:dimmingView];
[self bringSubviewToFront:dimmingView];
Expand Down

0 comments on commit 39983a2

Please sign in to comment.