@@ -1180,7 +1180,7 @@ - (void)moreMenuItemDidTapped:(LLMessageBaseCell *)aCell {
1180
1180
self.view .backgroundColor = TABLEVIEW_BACKGROUND_COLOR;
1181
1181
self.chatMoreBottomBar .frame = CGRectMake (0 , SCREEN_HEIGHT, SCREEN_WIDTH, 50 );
1182
1182
[UIView animateWithDuration: 0.3 animations: ^{
1183
- self.chatMoreBottomBar .frame = CGRectMake (0 , SCREEN_HEIGHT - MAIN_BOTTOM_TABBAR_HEIGHT, SCREEN_WIDTH, MAIN_BOTTOM_TABBAR_HEIGHT);
1183
+ self.chatMoreBottomBar .frame = CGRectMake (0 , SCREEN_HEIGHT - MAIN_BOTTOM_TABBAR_HEIGHT - NAVIGATION_BAR_HEIGHT , SCREEN_WIDTH, MAIN_BOTTOM_TABBAR_HEIGHT);
1184
1184
self.chatInputViewBottomConstraint .constant = -CGRectGetHeight (self.chatInputView .frame );
1185
1185
self.tableViewBottomConstraint .constant = MAIN_BOTTOM_TABBAR_HEIGHT;
1186
1186
[self .view layoutIfNeeded ];
@@ -2137,15 +2137,15 @@ - (void)presentSightController {
2137
2137
[self .view addSubview: dimView];
2138
2138
2139
2139
[self addChildViewController: _sightController];
2140
- CGFloat _height = THE_GOLDEN_RATIO * SCREEN_HEIGHT;
2140
+ CGFloat _height = round ( THE_GOLDEN_RATIO * SCREEN_HEIGHT) ;
2141
2141
_sightController.view .frame = CGRectMake (0 , SCREEN_HEIGHT - 320 , SCREEN_WIDTH, _height);
2142
2142
2143
2143
self.view .backgroundColor = TABLEVIEW_BACKGROUND_COLOR;
2144
2144
[UIView animateWithDuration: DEFAULT_DURATION animations: ^{
2145
2145
self.chatInputViewBottomConstraint .constant = -CGRectGetHeight (self.chatInputView .frame );
2146
2146
self.tableViewBottomConstraint .constant = MAIN_BOTTOM_TABBAR_HEIGHT;
2147
2147
2148
- self.tableView .contentInset = UIEdgeInsetsMake (0 , 0 , _height - MAIN_BOTTOM_TABBAR_HEIGHT, 0 );
2148
+ self.tableView .contentInset = UIEdgeInsetsMake (0 , 0 , _height - MAIN_BOTTOM_TABBAR_HEIGHT - NAVIGATION_BAR_HEIGHT , 0 );
2149
2149
self.tableView .scrollIndicatorInsets = self.tableView .contentInset ;
2150
2150
[self .view layoutIfNeeded ];
2151
2151
[self scrollToBottom: NO ];
0 commit comments