Fixed window resizing issue

Signed-off-by: robertsonics <jamie@robertsonics.com>