SearchTextField icon indicating copy to clipboard operation
SearchTextField copied to clipboard

List Off-Screen When Direction Is .up

Open jngr opened this issue 6 years ago • 2 comments

Thank you for this very useful and flexible implementation. I have encountered a problem when using it in landscape mode. With the keyboard visible the direction is typically .up, and the list ends up being higher than the available space and partially of the screen.

In line 302 (height calculation for direction .up) shouldn't it simply be let tableHeight = min(tableView.contentSize.height, frame.origin.y )

or, with a small margin on top for better looks let tableHeight = min(tableView.contentSize.height, frame.origin.y - topMargin )

jngr avatar Jun 16 '18 11:06 jngr

Yeah it's working very good!

MarcoCarnevali avatar Jun 17 '18 15:06 MarcoCarnevali

Please, How can I fix this with the last version?

yahyatabba avatar Nov 01 '19 22:11 yahyatabba