Fixed resizing issue with Linux builds