Fixed PopupMenu clone method not copying menu close behaviour and using an incorrect number of rows