fix scroll position for Layer