protected override float computeMaxIntrinsicHeight(float width) { float height = this._getSize(BoxConstraints.tightForFinite(width: width)).height; if (height.isFinite()) { return height; } return 0.0f; }
protected override float computeMaxIntrinsicWidth(float height) { float width = this._getSize(BoxConstraints.tightForFinite(height: height)).width; if (width.isFinite()) { return width; } return 0.0f; }
protected internal override float computeMinIntrinsicHeight(float width) { D.assert(width >= 0.0); if (_width == null && _height == null) { return(0.0f); } return(_sizeForConstraints(BoxConstraints.tightForFinite(width: width)).height); }
protected internal override float computeMinIntrinsicWidth(float height) { D.assert(height >= 0.0); if (_width == null && _height == null) { return(0.0f); } return(_sizeForConstraints(BoxConstraints.tightForFinite(height: height)).width); }
protected override double computeMinIntrinsicHeight(double width) { D.assert(width >= 0.0); if (this._width == null && this._height == null) { return(0.0); } return(this._sizeForConstraints(BoxConstraints.tightForFinite(width: width)).height); }
protected override double computeMinIntrinsicWidth(double height) { D.assert(height >= 0.0); if (this._width == null && this._height == null) { return(0.0); } return(this._sizeForConstraints(BoxConstraints.tightForFinite(height: height)).width); }
protected override double computeMaxIntrinsicHeight(double width) { double height = this._getSize(BoxConstraints.tightForFinite(width: width)).height; if (height.isFinite()) { return(height); } return(0.0); }
protected override double computeMaxIntrinsicWidth(double height) { double width = this._getSize(BoxConstraints.tightForFinite(height: height)).width; if (width.isFinite()) { return(width); } return(0.0); }
protected internal override float computeMaxIntrinsicHeight(float width) { float height = _getSize(BoxConstraints.tightForFinite(width: width)).height; if (height.isFinite()) { return(height); } return(0.0f); }
protected internal override float computeMaxIntrinsicWidth(float height) { float width = _getSize(BoxConstraints.tightForFinite(height: height)).width; if (width.isFinite()) { return(width); } return(0.0f); }
protected override float computeMinIntrinsicHeight(float width) { D.assert(this._children.Count == this.rows * this.columns); List <float> widths = this._computeColumnWidths(BoxConstraints.tightForFinite(width: width)); float rowTop = 0.0f; for (int y = 0; y < this.rows; y++) { float rowHeight = 0.0f; for (int x = 0; x < this.columns; x++) { int xy = x + y * this.columns; RenderBox child = this._children[xy]; if (child != null) { rowHeight = Mathf.Max(rowHeight, child.getMaxIntrinsicHeight(widths[x])); } } rowTop += rowHeight; } return(rowTop); }
protected internal override float computeMaxIntrinsicHeight(float width) { D.assert(width >= 0.0); return(_sizeForConstraints(BoxConstraints.tightForFinite(width: width)).height); }
protected internal override float computeMaxIntrinsicWidth(float height) { D.assert(height >= 0.0); return(_sizeForConstraints(BoxConstraints.tightForFinite(height: height)).width); }
protected override double computeMaxIntrinsicHeight(double width) { D.assert(width >= 0.0); return(this._sizeForConstraints(BoxConstraints.tightForFinite(width: width)).height); }
protected override double computeMaxIntrinsicWidth(double height) { D.assert(height >= 0.0); return(this._sizeForConstraints(BoxConstraints.tightForFinite(height: height)).width); }