JScrollPane sets the bottom field value

For layout purposes, I need to place 15px space between the bottom of the scrolled content and the bottom of the container: div class="scroll-pane" .

Stacking the container .scroll-pane { padding-bottom:15px; } .scroll-pane { padding-bottom:15px; } does not affect the output. Going to the jScrollPane () plugin code, it is installed: elem.css({'padding':0}); , so the value of padding reset.

Is it possible to set paddingBottom value for scroll container?

+4
source share
2 answers

The css rule should work too!

 .scroll-pane { padding-bottom:15px!important; } 
+1
source

In jQuery

 $('.scroll-pane').parent().css('padding-bottom', '15px'); 

Gotta do the trick

0
source

Source: https://habr.com/ru/post/1439835/


All Articles