FloatingPanel icon indicating copy to clipboard operation
FloatingPanel copied to clipboard

Unable to scroll to last item on TableView

Open faris-mobile89 opened this issue 8 years ago • 12 comments

I have downloaded the sample then I changed numberOfRowsInSection to 20. there is an issue on the last cell of table view (Hidden).

faris-mobile89 avatar Oct 18 '18 05:10 faris-mobile89

Thank you for #1 report of this library! I acknowledge this issue and I'm working to fix it now.

scenee avatar Oct 19 '18 00:10 scenee

@faris-mobile89 I fixed this issue on v1.0.0. Could you please try it?

scenee avatar Oct 23 '18 01:10 scenee

Hi! I've also been following this (pretty awesome btw) and I can confirm that we are able to scroll to the last item now. I have a question though, how could we avoid having extra blank space at the bottom when using a tabBar in iPhones X and up? It works fine in square screen devices.

jaimeealmanza avatar Oct 23 '18 16:10 jaimeealmanza

Hello, @jaimeealmanza! Thank you for your report. I didn't know the layout issue. I try to investigate that. If possible, I would like you to attach a screen shot when the issue happens. it will be much helpful for me.

scenee avatar Oct 24 '18 00:10 scenee

@jaimeealmanza Could you try to use 'fix-surface-view-height' branch?

pod 'FloatingPanel', :git => 'https://github.com/scenee/FloatingPanel.git', :branch => 'fix-surface-view-height'

scenee avatar Oct 24 '18 04:10 scenee

@SCENEE I'm afraid that branch makes it clip the last cell under the tab bar. Attached screenshots for the current release and for 'fix-surface-view-height' branch.

current release fix-surface-view-height branch

jaimeealmanza avatar Oct 24 '18 19:10 jaimeealmanza

@jaimeealmanza Thank you for your screen shots! I will fix it.


I fixed the above issue at 1d2be48 commit on 'fix-surface-view-height' branch! It's a problem of Main.Storyboard in Examples/Maps. Could you please try it again?

The reason why the issue also happens on main branch is the same, but the change on Main.Storyboard in Examples/Maps is different a bit. (It's to change the first item of the bottom constraint of the visual effect view from SafeArea.Bottom to Superview.Bottom)

scenee avatar Oct 24 '18 23:10 scenee

Thanks, @faris-mobile89 and @jaimeealmanza.

scenee avatar Oct 27 '18 00:10 scenee

I'm currently having a similar problem. I open a panel in 'half' size without tracking the tableview, so it stays at half, when scrolling. Then it is not possible to scroll to the last tableview items.

When I open the panel in 'full' everything is fine...

Urkman avatar Nov 15 '18 10:11 Urkman

It's by design because 'full' means a panel shows full of a content VC and the design follows Apple Maps and Stocks behavior. If you would show whole of a table view in 'half' screen. You can do it as below.

  • A content VC has a table view (shouldn't use UITableViewController)
  • Customize top/left/right/height constraints of a table view to fit half screen height
    • The height constraint should be modified in the content VC whether there is safeArea bottom inset or not.

scenee avatar Nov 16 '18 22:11 scenee

What event should I use to handle the "Height change"?

Urkman avatar Nov 26 '18 07:11 Urkman

I'm sorry there is no way to handle the change. But I think your issue(or request) will be related to and resolved by Intrinsic height feature(Ref #50, #57). What do you think?

scenee avatar Nov 27 '18 10:11 scenee