Bugfix about square mal displayed

Fixed by forcing vertical scrollbar and using document.width