Fix heights of Reference, ReferenceList and Template dialogs

Bug: 68226
Bug: 68232
Change-Id: I93916875a6b4b1e7b837efce33a9aa20857f227a
Merge "Fix heights of Reference, ReferenceList and Template dialogs"