Fixed resizing issue, now it works both up and down.