ISIS-537 Fix the layout of ReferencePanel in compact mode