Removing the last_resized variable

Instead resizing only if pane_active is set so we are sure the resizep
is called only once