Panel state button does not work in vertical mode