Comments (6)
Just call EasyScroller::reflow
after your content changed: https://github.com/zynga/scroller/blob/master/src/EasyScroller.js#L75
from scroller.
Thanks for the fast reply Prinzhorn! I'm having trouble calling that function (which is just my lack of JS knowledge...)
I'm loading the plugin like this once my page loads:
var scroll = new EasyScroller(listTable, {
scrollingX: false,
scrollingY: true,
zooming: 0,
minZoom: 0,
maxZoom: 0
});
So should I be able to call it later like this (after my content changes)?:
scroll.scroller.reflow();
from scroller.
reflow
is part of EasyScroller, not Scroller. Just scroll.reflow()
from scroller.
I should be able to call that from anywhere in my app, correct? That was actually the first thing that I tried, but I was unsuccessful at reflowing the script.
Thanks again Prinzhorn!
from scroller.
I'm an idiot, it was a scoping issue. Thanks so much for you help Prinzhorn!!
from scroller.
You are welcome.
from scroller.
Related Issues (20)
- Using paging, getting the current targeted page on scroll end
- Random Problems HOT 1
- Option to Center Content to Client when the Content is smaller then the Client HOT 2
- clientHeight is 0 in backbone webapp
- how to pull down to refresh the dom
- Project no longer maintained? HOT 1
- update gh-pages
- Zynga Scroller for Phaser
- hyper link not working on scroll content HOT 1
- Publish on npm?
- scrollTo behaves differently on second call to `scrollTo` with the same zoom
- how to pinch to zoom force on the center
- Usage with react?
- Integrate scroller with Vue
- about canvas rotation and use scroller Dimensions wrong
- Add bouncing bouncing: false, will be hidden at the bottom part of the dom, when set to true will not appear this kind of problem
- How to force stop scrolling manually?
- how can i use in wechat?
- why cannot Up-pull refresh?
- Demo site http://zynga.github.com/scroller/ gives 404 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scroller.