function _applyFieldWeight(oElement){

		var iMaxWeight = this._iMaxWeight;
		var aFields = oElement.getFields();
		var oField;
		var iLength = aFields.length;
		var oLabel = oElement.getLabel();
		var oLayoutData;
		var i = 0;

		this._bLayoutDataChangedByMe = true;

		if (oLabel && _getFieldLayoutData.call(this, oLabel)) {
			iMaxWeight = iMaxWeight - _getFieldLayoutData.call(this, oLabel).getWeight();
		}

		// determine weights set from application
		for (i = 0; i < aFields.length; i++) {
			oField = aFields[i];
			oLayoutData = _getFieldLayoutData.call(this, oField);
			if (oLayoutData && oLayoutData.isA("sap.ui.layout.ResponsiveFlowLayoutData") &&
					!_isMyLayoutData.call(this, oLayoutData)) {
				iMaxWeight = iMaxWeight - oLayoutData.getWeight();
				iLength--;
			}
		}

		var iWeight = Math.floor(iMaxWeight / iLength);
		var iRest = iMaxWeight % iLength;

		for (i = 0; i < aFields.length; i++) {
			oField = aFields[i];
			oLayoutData = _getFieldLayoutData.call(this, oField);
			var iCurrentWeight = iWeight;

			if (!oLayoutData) {
				_createFieldLayoutData.call(this, oField, iCurrentWeight, false, i == 0);
			} else if (_isMyLayoutData.call(this, oLayoutData) &&
					oLayoutData.isA("sap.ui.layout.ResponsiveFlowLayoutData")) {
				// devide rest to first fields (not only to last one) (fist because to ignore manual set weigths)
				if (iRest > 0) {
					iCurrentWeight++;
					iRest--;
				}
				oLayoutData.setWeight(iCurrentWeight);
			}
		}

		this._bLayoutDataChangedByMe = false;
	}
function _applyFieldWeight(oElement){

		var iMaxWeight = this._iMaxWeight;
		var aFields = oElement.getFields();
		var oField;
		var iLength = aFields.length;
		var oLabel = oElement.getLabel();
		var oLayoutData;
		var i = 0;

		this._bLayoutDataChangedByMe = true;

		if (oLabel && _getFieldLayoutData.call(this, oLabel)) {
			iMaxWeight = iMaxWeight - _getFieldLayoutData.call(this, oLabel).getWeight();
		}

		// determine weights set from application
		for (i = 0; i < aFields.length; i++) {
			oField = aFields[i];
			oLayoutData = _getFieldLayoutData.call(this, oField);
			if (oLayoutData && oLayoutData.isA("sap.ui.layout.ResponsiveFlowLayoutData") &&
					!_isMyLayoutData.call(this, oLayoutData)) {
				iMaxWeight = iMaxWeight - oLayoutData.getWeight();
				iLength--;
			}
		}

		var iWeight = Math.floor(iMaxWeight / iLength);
		var iRest = iMaxWeight % iLength;

		for (i = 0; i < aFields.length; i++) {
			oField = aFields[i];
			oLayoutData = _getFieldLayoutData.call(this, oField);
			var iCurrentWeight = iWeight;

			if (!oLayoutData) {
				_createFieldLayoutData.call(this, oField, iCurrentWeight, false, i == 0);
			} else if (_isMyLayoutData.call(this, oLayoutData) &&
					oLayoutData.isA("sap.ui.layout.ResponsiveFlowLayoutData")) {
				// devide rest to first fields (not only to last one) (fist because to ignore manual set weigths)
				if (iRest > 0) {
					iCurrentWeight++;
					iRest--;
				}
				oLayoutData.setWeight(iCurrentWeight);
			}
		}

		this._bLayoutDataChangedByMe = false;
	}
function _applyFieldWeight ( oElement ) { var iMaxWeight = this . _iMaxWeight ; var aFields = oElement . getFields ( ) ; var oField ; var iLength = aFields . length ; var oLabel = oElement . getLabel ( ) ; var oLayoutData ; var i = 0 ; this . _bLayoutDataChangedByMe = true ; if ( oLabel && _getFieldLayoutData . call ( this , oLabel ) ) { iMaxWeight = iMaxWeight - _getFieldLayoutData . call ( this , oLabel ) . getWeight ( ) ; } // determine weights set from application for ( i = 0 ; i < aFields . length ; i ++ ) { oField = aFields [ i ] ; oLayoutData = _getFieldLayoutData . call ( this , oField ) ; if ( oLayoutData && oLayoutData . isA ( "sap.ui.layout.ResponsiveFlowLayoutData" ) && ! _isMyLayoutData . call ( this , oLayoutData ) ) { iMaxWeight = iMaxWeight - oLayoutData . getWeight ( ) ; iLength -- ; } } var iWeight = Math . floor ( iMaxWeight / iLength ) ; var iRest = iMaxWeight % iLength ; for ( i = 0 ; i < aFields . length ; i ++ ) { oField = aFields [ i ] ; oLayoutData = _getFieldLayoutData . call ( this , oField ) ; var iCurrentWeight = iWeight ; if ( ! oLayoutData ) { _createFieldLayoutData . call ( this , oField , iCurrentWeight , false , i == 0 ) ; } else if ( _isMyLayoutData . call ( this , oLayoutData ) && oLayoutData . isA ( "sap.ui.layout.ResponsiveFlowLayoutData" ) ) { // devide rest to first fields (not only to last one) (fist because to ignore manual set weigths) if ( iRest > 0 ) { iCurrentWeight ++ ; iRest -- ; } oLayoutData . setWeight ( iCurrentWeight ) ; } } this . _bLayoutDataChangedByMe = false ; }
/*
Applies the weight property for the fields in the responsive layout.
@param {sap.ui.layout.form.FormElement} oElement The FormElement where the weight is applied.
@private
/ * Applies the weight property for the fields in the responsive layout .
Applies the current weight to the given field