Mobile padding issue

nikadevs's picture
nikadevs
Wed, 07/22/2015 - 04:56
#1
Mobile padding issue

MD Slider Version: 2.17
Files: sites/all/modules/contrib/md_slider/includes/md_slider.utils.inc, sites/all/modules/contrib/md_slider/templates/front/theme.front.inc

Hello,

I'm having issues with padding not automatically adjusting when on a mobile device. In version 2.14, the padding would automatically adjust from the resizePadding() function in md-slider.js. In order to get the padding working again, I had to comment out lines 134-144 in md_slider.utils.incand add the following lines of code back into theme.front.inc from version 2.14 at line 234.

if (isset($element['paddingtop']) && $element['paddingtop'] > 0) {    $output[] = "data-padding-top='{$element_full['paddingtop']}'";}if (isset($element['paddingbottom']) && $element['paddingbottom'] > 0) {    $output[] = "data-padding-bottom='{$element['paddingbottom']}'";}if (isset($element['paddingleft']) && $element['paddingleft'] > 0) {    $output[] = "data-padding-left='{$element['paddingleft']}'";}if (isset($element['paddingright']) && $element['paddingright'] > 0) {    $output[] = "data-padding-right='{$element['paddingright']}'";}
phuonght's picture
phuonght
Wed, 07/22/2015 - 05:55

Hi,

Please update our latest version of mega slider and see if it works. It is 2.18 now.

You can download it from your account page in forum (http://megadrupal.com/user/nikadevs).

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.