@param float $allowed_max_height

@return $this
974017
public function setAllowedMaxHeight(float $allowed_max_height) {
        if(!$this->setModified('allowed_max_height', $allowed_max_height)->isModified()) {
            return $this;
        }
		$this->allowed_max_height = $allowed_max_height;
		return $this;
    }
782101
public function float() {
        $this->check_role = 'float';
        $result = $this->filter($this->value, FILTER_VALIDATE_FLOAT);
        $this->checkResult($result);
        return $this;
    }
22235
public function setHeight($height)
    {
        if (!is_numeric($height))
        {
            throw new InvalidDataException('Invalid height value');
        }

        $this->height = (int) $height;

        return $this;
    }
1292062
public function setStandingLevel($standingLevel)
    {
        $allowedValues = $this->getStandingLevelAllowableValues();
        if (!is_null($standingLevel) && !in_array($standingLevel, $allowedValues)) {
            throw new \InvalidArgumentException(
                sprintf(
                    "Invalid value for 'standingLevel', must be one of '%s'",
                    implode("', '", $allowedValues)
                )
            );
        }
        $this->container['standingLevel'] = $standingLevel;

        return $this;
    }
163393
public function setMax(?string $max) : self
    {
        if ($max !== null) {
            $max = Decimal::parse($max);
        }

        $this->max = $max;

        return $this;
    }
905483
public function setMax($value)
    {
        $this->max = $value === null ? null : (int) $value;

        return $this;
    }
580181
public final void setMaxHeight(final int maxHeight) {
        if (maxHeight != -1) {
            Condition.INSTANCE.ensureAtLeast(maxHeight, 1, "The maximum height must be at least 1");
        }

        this.maxHeight = maxHeight;
        requestLayout();
    }
744153
public function setMaxStateLength(int $maxStateLength = null): self
    {
        assert($maxStateLength === null || $maxStateLength > 0);

        $this->maxStateLength = $maxStateLength;

        return $this;
    }
733634
public function setHeight($height) {
        if (!is_numeric($height) || $height <= 0) {
            return;
        }
        if ($height > self::MAX_HEIGHT) {
            $this->_height = self::MAX_HEIGHT;
        } else {
            $this->_height = (int)$height;
        }
    }
1038061
function secondaryToolbarSetMaxHeight(container) {
    if (!container || !this.buttonContainer) {
      return;
    }
    this.newContainerHeight = container.clientHeight;
    if (this.previousContainerHeight === this.newContainerHeight) {
      return;
    }
    this.buttonContainer.setAttribute('style',
      'max-height: ' + (this.newContainerHeight - SCROLLBAR_PADDING) + 'px;');
    this.previousContainerHeight = this.newContainerHeight;
  }
1062105
public function scaleFixedHeight($height)
    {
        $_width = $this->do_getWidth();
        $_height = $this->do_getHeight();

        $width = (int)($_width * $height / $_height);
        $this->do_resize($width, $height);

        return $this;
    }
1032047
public function resize($width, $height, $allow_enlarge = false)
    {
        if (!$allow_enlarge) {
            // if the user hasn't explicitly allowed enlarging,
            // but either of the dimensions are larger then the original,
            // then just use original dimensions - this logic may need rethinking

            if ($width > $this->getSourceWidth() || $height > $this->getSourceHeight()) {
                $width  = $this->getSourceWidth();
                $height = $this->getSourceHeight();
            }
        }

        $this->source_x = 0;
        $this->source_y = 0;

        $this->dest_w = $width;
        $this->dest_h = $height;

        $this->source_w = $this->getSourceWidth();
        $this->source_h = $this->getSourceHeight();

        return $this;
    }
1221822
protected function setFreightDimensionsOnPayload()
    {
        if ($this->items) {
            $this->payload['nVlLargura'] = $this->width();
            $this->payload['nVlAltura'] = $this->height();
            $this->payload['nVlComprimento'] = $this->length();
            $this->payload['nVlDiametro'] = 0;
            $this->payload['nVlPeso'] = $this->useWeightOrVolume();
        }

        return $this;
    }
306491
public function resizeToHeight($height, $allow_enlarge = false)
    {
        $ratio = $height / $this->getSourceHeight();
        $width = $this->getSourceWidth() * $ratio;

        $this->resize($width, $height, $allow_enlarge);

        return $this;
    }
1089395
public function sizeMax($sizeMax = 1048576, $error) {
        if ($this->_exist) {
            array_push($this->_constraints, ['type' => self::SIZEMAX, 'value' => $sizeMax, 'message' => $error]);
        }

        return $this;
    }
361854
public function setLayoutDisabled($disabled = true)
    {
        $this->_layoutDisabled = ($disabled === true) ? true : false;
        return $this;
    }
1335459
public function setMax($max)
  {
    if (!is_numeric($max))
    {
      $max = null;
    }
    $this->max = $max;

    return $this;
  }