fix layout when click the maximum button