VE-1535: Handle overflow past 2 lines

https://wikia-inc.atlassian.net/browse/VE-1535