When realign function is called the plugin menus should not hide.

This pr is intended to be published after the autohide merge.
Its just a small fix.