Fixed #1462. Fixed #1491. Linux resize and scrolling issues