Merge pull request #677 from abarth/behavior

Rename _updateScrollBehaviour to _updateScrollBehavior
This commit is contained in:
Adam Barth
2015-12-02 10:20:29 -08:00

View File

@@ -354,16 +354,16 @@ class ScrollableViewportState extends ScrollableState<ScrollableViewport> {
void _handleViewportSizeChanged(Size newSize) {
_viewportSize = config.scrollDirection == ScrollDirection.vertical ? newSize.height : newSize.width;
setState(() {
_updateScrollBehaviour();
_updateScrollBehavior();
});
}
void _handleChildSizeChanged(Size newSize) {
_childSize = config.scrollDirection == ScrollDirection.vertical ? newSize.height : newSize.width;
setState(() {
_updateScrollBehaviour();
_updateScrollBehavior();
});
}
void _updateScrollBehaviour() {
void _updateScrollBehavior() {
// if you don't call this from build(), you must call it from setState().
scrollTo(scrollBehavior.updateExtents(
contentExtent: _childSize,