fixed cross browser bug for floating menu