Fix resizing issues in deck viewer