Merge pull request #416 from Koerty/grid-fix-calcGridDimension

Fix calcGridDimension being called before mScrollDirection
This commit is contained in:
John Rassa 2018-04-16 17:56:14 -04:00 committed by GitHub
commit 6902ac2cb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,9 +85,9 @@ ImageGridComponent<T>::ImageGridComponent(Window* window) : IList<ImageGridData,
mMargin = screen * 0.07f;
mTileSize = GridTileComponent::getDefaultTileSize();
calcGridDimension();
mScrollDirection = SCROLL_VERTICALLY;
calcGridDimension();
}
template<typename T>