src/sap.ui.table/src/sap/ui/table/TableUtils.js
function(sCSSSize, bWithUnit) {
			var iPixelValue;

			if (typeof sCSSSize !== "string") {
				return null;
			}

			if (sCSSSize.endsWith("px")) {
				iPixelValue = parseInt(sCSSSize);
			} else if (sCSSSize.endsWith("em") || sCSSSize.endsWith("rem")) {
				iPixelValue = Math.ceil(parseFloat(sCSSSize) * TableUtils.getBaseFontSize());
			} else {
				return null;
			}

			if (bWithUnit) {
				return iPixelValue + "px";
			} else {
				return iPixelValue;
			}
		}
function(sCSSSize, bWithUnit) {
			var iPixelValue;

			if (typeof sCSSSize !== "string") {
				return null;
			}

			if (sCSSSize.endsWith("px")) {
				iPixelValue = parseInt(sCSSSize);
			} else if (sCSSSize.endsWith("em") || sCSSSize.endsWith("rem")) {
				iPixelValue = Math.ceil(parseFloat(sCSSSize) * TableUtils.getBaseFontSize());
			} else {
				return null;
			}

			if (bWithUnit) {
				return iPixelValue + "px";
			} else {
				return iPixelValue;
			}
		}
function ( sCSSSize , bWithUnit ) { var iPixelValue ; if ( typeof sCSSSize !== "string" ) { return null ; } if ( sCSSSize . endsWith ( "px" ) ) { iPixelValue = parseInt ( sCSSSize ) ; } else if ( sCSSSize . endsWith ( "em" ) || sCSSSize . endsWith ( "rem" ) ) { iPixelValue = Math . ceil ( parseFloat ( sCSSSize ) * TableUtils . getBaseFontSize ( ) ) ; } else { return null ; } if ( bWithUnit ) { return iPixelValue + "px" ; } else { return iPixelValue ; } }
Converts the CSS size to pixels and returns it with or without unit. Can also be used to parse a pixel value string to an integer.

@param {string} sCSSSize The CSSSize to convert.
@param {boolean} [bWithUnit=false] Whether the value should be returned as a string with the unit.
@returns {string | int | null} The pixel value as an integer, or string if <code>bWithUnit</code> is <code>true</code>. Returns
<code>null</code> if the CSS size could not be converted.
Converts the CSS size to pixels and returns it with or without unit . Can also be used to parse a pixel value string to an integer .