fix right panel auto hide bug