Fix calcGridDimension being called before mScrollDirection

This commit is contained in:
Koerty 2018-04-15 15:20:49 +02:00
parent b622a4272e
commit 4a587ca347

View file

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