Eureka icon indicating copy to clipboard operation
Eureka copied to clipboard

How can I fix tableview jumping?

Open pandaApe opened this issue 6 years ago • 4 comments

  • Environment: Eureka, Xcode and iOS version you are using. Eureka: 4.2.0, Xcode: 9.4.1, iOS: 11.4

  • Any other additional detail such as your eureka form/section/row code that you think it would be useful to understand and solve the problem.

There is a section header view which belongs to the first section, its hight is 300, and several PickerInlineRows are under other sections. Just rows initialization code.

It seems that it was doing height calculation there.

untitle1d

pandaApe avatar Aug 21 '18 02:08 pandaApe

I think this is a bug of iOS UITableView. This unexpected result also exists in the official Calendar app on iPhone. However, if you try to hide and show some rows by some conditions, you will find this broken animation as well. Hope someone can fix this.

yunhao avatar Oct 11 '18 14:10 yunhao

@pandaApe I fixed this issue by removing tableView.estimatedRowHeight and setting

tableView.rowHeight = UITableView.automaticDimension
tableView.sectionHeaderHeight = UITableView.automaticDimension

iosware avatar Dec 03 '18 19:12 iosware

add empty label row at first, just after the section <<< LabelRow() { row in

}

faizannaseem96 avatar Mar 28 '19 07:03 faizannaseem96

I faced #1875, seems like TextAreaRow and PickerInlineRow are the only two that set the "height" parameter. This is driving me crazy. Adding LabelRow doesn't work.

@pashikua , how do you "remove estimatedRowHeight"?

ykphuah avatar Jun 29 '19 17:06 ykphuah