backstack icon indicating copy to clipboard operation
backstack copied to clipboard

After pushView the content dosnt scroll verticaly ...

Open dmarko484 opened this issue 13 years ago • 3 comments

Hello, I wuld like to ask for a hint. I'm using the backstack with trigger.io for mobile app (testing currfently on android phone) and have problem that I cant resolve. I have a list of products iwant display using BackStack pushView(). Prodocts displays correctly but the view doesnt scroll verticaly (and it should because I have many products/items). When I dont use Backstack and just replace the container div with the same html as used with back stack, the scroll bar appears correcly. Is there something I miss?

Thank you ...

dmarko484 avatar Jun 13 '12 08:06 dmarko484

Can try to run this sample page: http://pwalczyszyn.github.com/backstack to see if scrolling works on your device? Scrolling should work in About and API sections.

To make it work I had to enforce overflow-y: scroll !important; on a divs that wrap those views.

pwalczyszyn avatar Jun 13 '12 13:06 pwalczyszyn

I just found out that you put div with some styles around my content and this styles cause the non vertical scrolling. I just did a little proof when I attached the viewActivate event to code that takes the content of this backstask div and put it into the my div(content) Then the scrolling works fine ... Its a bit complicated but works so far ...

dmarko484 avatar Jun 15 '12 07:06 dmarko484

the solution is simple: just change element 'overflow' style from 'hidden' to 'scroll';

line 558:

view.$el.css({position:'absolute', visibility:'hidden', overflow:'hidden' ...

becomes

view.$el.css({position:'absolute', visibility:'hidden', overflow:'scroll' ...

mkozhukharenko avatar Jun 10 '15 12:06 mkozhukharenko