javascript - jScrollPane and relative width? -


i experimenting jscrollpane (http://jscrollpane.kelvinluck.com/index.html) wonderfull piece of art. no have problem, div want scroll jscrollpane has absolute position , dynamic width height:

.scroll-pane {   text-transform: none;   text-align: left;    background: rgba(40,40,40,0.5);    position: absolute;   top: 250px;   left: 100px;   min-width: 50%;   max-width: 70%;   min-height: 40%;   text-transform: none;   bottom: 40px;   overflow: auto; } 

if change windows-size, jscrollpane breaks. if reload page in new size, scrollbar works again perfectly.

is there way trigger reinitialization of jscrollpane if windows-size changing?

it nice if me this.

try this:

  $(window).resize(function(){         $('.scroll-pane').jscrollpane();   }); 

Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -