What steps will reproduce the problem?
1. create a div with id test_div , then add a table with some rows in this div
,$("#test_div").niceScroll({touchbehavior:false, cursorcolor:"#b8bdc1",
cursoropacitymax:0.6, cursorwidth:8});
2. then use chrome develope tool to add a row in the table
3. run $("#test_div").getNiceScroll().resize();
What is the expected output? What do you see instead?
the scroll div does not locate to the new position .
What version of the product are you using? On what operating system?
version 3.4.0
win7
Please provide any additional information below.
if
((self.page.maxh==premaxh)&&(self.page.maxw==premaxw)&&(self.view.w==preview.w))
{
// test position
if (!self.ispage) {
var pos = self.win.offset();
/*
if (self.lastposition) {
var lst = self.lastposition;
if ((lst.top==pos.top)&&(lst.left==pos.left)) return self; //nothing to do
}
*/
self.lastposition = pos;
} else {
return self; //nothing to do
}
}
need to comments some line , see the above
Original issue reported on code.google.com by chenlinb...@163.com on 19 Nov 2013 at 7:46
Original issue reported on code.google.com by
chenlinb...@163.com
on 19 Nov 2013 at 7:46