julianlam/Scrollable — Issue #6: Scrollbar Position Issue when div is display:none;
Author: mayrrecordscan
Created: 2011-12-03 13:07:10+00:00
State: open

Hey,

if the scroll-div is invisible or hidden in its parent, the scrollbar position will be wrong. (as long as you do the first move event).

mootools cant get the "getPosition" while the element is not visible. i changed the function "reposition" like this:

```javascript
if(this.element.isVisible())
this.position = this.element.getPosition();
else
this.position = this.element.measure(function(){
return this.getSize(); });