jasonelle-archive / jasonelle-v2

🛸 🏘️ Jasonelle issues, releases, discussions and wiki repository.
https://jasonelle.com
Mozilla Public License 2.0
422 stars 58 forks source link

$scroll bug? #68

Closed mrshawnj closed 4 years ago

mrshawnj commented 5 years ago

I'm trying to use $scroll bottom. I have on view and then I use "push" to transition to next view. I call "$scroll" with "bottom" option, and nothing happens in the current view. However, I notice when I click the back button to previous view, the previous view has now scrolled to the bottom.

clsource commented 5 years ago

Hello in which platform does this happens? have you got a sample json? thanks.

mrshawnj commented 5 years ago

iOS... I can make some sample json, but don't have it at the moment

mrshawnj commented 5 years ago

I basically just tried after an action:

                                        "success":
                                        {
                                                "type": "$scroll",
                                                "options": {
                                                    "position": "bottom"
                                                }
                                        }
mrshawnj commented 4 years ago

I also tried to substitute "top" instead of "bottom" to see what happens and this causes a crash:

*** Terminating app due to uncaught exception 'NSRangeException', reason: '-[UITableView _contentOffsetForScrollingToRowAtIndexPath:atScrollPosition:usingPresentationValues:]: row (0) beyond bounds (0) for section (0).'

libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)

clsource commented 4 years ago

thanks for the report. I will check that action futher! 👍

clsource commented 4 years ago

Ok this will be checked in the next release. Thanks for your contribution 👍