Steven
Steven

Reputation: 401

Scrolling not working on Iphone

I have the following div and the native scrolling does not work on it. Is there anything from this code that could possible be caused the scrolling to fail? Or is there something I can add to this to make the scrolling work?

<div id='calvw' style='overflow= hidden;'>    
  <a id='calevvw' dhx_l_id='#id#' data-ajax='false' href='eventview.php?eventid=#id#'
class='dhx_list_item dhx_list_day_events_time'
 style='width:{common.widthSize()}; height:{common.heightSize()};
border-bottom: 1px solid #cbcbcb; padding:{common.padding}px;
 margin:{common.margin}px; overflow:hidden;'>    
</a> 
</div>

Upvotes: 7

Views: 32797

Answers (1)

Charlie
Charlie

Reputation: 11787

If the div you are tying to have scroll is #calvw, this won't work, as you have overflow:hidden on it.

Change the css of that element to:

overflow:scroll;
-webkit-overflow-scrolling:touch;

To enable native, momentum scrolling.

Upvotes: 17

Related Questions