function childrenAreSameSize(oReferenceOverlay, aChildOverlays, bIsAlreadyStretched) {
		var oParentGeometry = oReferenceOverlay.getGeometry();

		if (!oParentGeometry) {
			return false;
		}

		// remove padding if it is already stretched
		var iHeight = oParentGeometry.size.height;
		if (bIsAlreadyStretched) {
			iHeight -= parseInt(window.getComputedStyle(oParentGeometry.domRef, null).getPropertyValue("padding-top"));
		}
		var iParentSize = Math.round(oParentGeometry.size.width) * Math.round(iHeight);
		aChildOverlays ||= OverlayUtil.getAllChildOverlays(oReferenceOverlay);

		var aChildrenGeometry = aChildOverlays.map(function(oChildOverlay) {
			return oChildOverlay.getGeometry();
		});

		var oChildrenGeometry = OverlayUtil.getGeometry(aChildrenGeometry);

		if (!oChildrenGeometry) {
			return false;
		}

		var iChildrenSize = Math.round(oChildrenGeometry.size.width) * Math.round(oChildrenGeometry.size.height);
		return iChildrenSize === iParentSize;
	}
Check if the size of an overlay is the same as an array of overlays.
If no array is passed to the functionthe children of the reference overlay are used.
If the control is already stretched we need to remove the padding that we add

@param {sap.ui.dt.ElementOverlay} oReferenceOverlay - overlay object
@param {sap.ui.dt.ElementOverlay[]} [aChildOverlays] - array of overlay objects that should be checked
@param {boolean} [bIsAlreadyStretched] - indicater if the control is already stretched
@returns {boolean} Returns true if the overlay has the same size as all the children
@private