-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(LayoutManager): add LayoutManger module and fix Infinite scroll #196
Conversation
src/DOMRenderer.js
Outdated
item.el = elements[index]; | ||
return item; | ||
}); | ||
} | ||
constructor(element, options) { | ||
Object.assign(this.options = { | ||
isOverflowScroll: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Younkue remove
test/unit/InfiniteGrid.spec.js
Outdated
@@ -547,14 +556,14 @@ describe("InfiniteGrid Test", function() { | |||
|
|||
this.inst.layout(true); | |||
expect(this.inst._renderer.getViewportSize()).to.be.equals(width); | |||
expect(this.inst._layout._size).to.be.equals(width); | |||
expect(this.inst._layout._layout._size).to.be.equals(width); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Younkue naming _layout => manager or layoutManager
test/unit/InfiniteGrid.spec.js
Outdated
|
||
const layoutCompleteHandler = sinon.spy(e => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Younkue check~
Issue
#135
#173
#185
#186
#192
Details