fix graphical bug when no button are required on the left or on the right

Pull request redirected from biox's repos as requested.