zippy1978 / jquery.scrollz

Modern scrolling for jQuery
GNU General Public License v2.0
81 stars 17 forks source link

How to get rid of the paddings on both left and right sides of the container? #11

Closed cardinal27513 closed 10 years ago

cardinal27513 commented 11 years ago

@zippy1978 We want to max out the width. But some scrollz added padding on both left & right? Can we've options to not pad that? Also this causes issue on my listview with my icon is chopped off a bit.

Thanks in advance.

zippy1978 commented 11 years ago

Hi, This is weird because the plugin is not supposed to add padding. Could you show me an example ?

cardinal27513 commented 11 years ago

Here is my setup to repro.., When I wrap the content in this way, there is a strip added. You can change the mobile example, you will see it...

<div  data-role="content">
    <div id="content" data-scrollz="pull">
        <ul id="tweets" data-role='listview' data-inset='false' data-theme='c'></ul> 
    </div>
</div>
zippy1978 commented 11 years ago

Hi, The border you have comes from the data-role="content" tag which in enhanced by the ui-content style of jQM. By default no padding / margin is added by the plugin to the scrollable area.