Bug fix: start layout at the top if the viewport
Basic painting