Introduce additional parameter option 'parentElem', which can force another parent element to deduce dimensions from.