framework7 icon indicating copy to clipboard operation
framework7 copied to clipboard

Scrolling inside animated tabs not working

Open shaulhadar opened this issue 12 years ago • 7 comments

Hi Vlad, I have been working with the kitchen sink and learning it and also the f7 docs. I have made some test, and added the animation option to the tabs in the kitchen sink project. But when i do this, the content inside the tabs is not scrollable any more. if i use the regular tabs without animation, than it is scrollable.

this is the code i have in the tabs page:

Is this a bug or did I miss anything?

Thanks, Shaul.

shaulhadar avatar Oct 18 '14 08:10 shaulhadar

I am not able to paste my code right, I am a bit new in pasting code in github and such, how am i supposed to do it?

thanks...

shaulhadar avatar Oct 18 '14 08:10 shaulhadar

Look at Syntax highlighting here https://guides.github.com/features/mastering-markdown/

nolimits4web avatar Oct 21 '14 14:10 nolimits4web

Yes, animated tabs are made a bit similar to Slider, so the each tab has the same 100% height. So to make scrolling works you may just wrap tab's content with some div like:

<div class="tab">
  <div class="tab-content">...</div>
</div>

And add this in CSS:

.tab-content {
  overflow:auto;
  -webkit-overflow-scrolling: touch;
}

nolimits4web avatar Oct 21 '14 14:10 nolimits4web

That's great, Vlad. Thank you very much :)

shaulhadar avatar Oct 24 '14 15:10 shaulhadar

If you're like me and you copied the get started lay-out from the docs you'll need to change this class <div class="pages">

Example:

.pages {
   overflow: auto;
  -webkit-overflow-scrolling: touch;
}

That'll fix it.

TawabG avatar Jun 20 '16 21:06 TawabG

   .tabs-animated-wrap > .tabs > .tab  {
     overflow: auto;
     -webkit-overflow-scrolling: touch;
   }

This solved my issue.

felipefrancisco avatar Nov 16 '16 17:11 felipefrancisco

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Jun 25 '18 13:06 lock[bot]