Change type of TextSize to float

This commit is contained in:
Beu 2022-04-14 00:59:18 +02:00
parent 0416a650a0
commit 0850f83787
5 changed files with 5 additions and 5 deletions

View File

@ -315,7 +315,7 @@ class Entry extends Control implements NewLineable, Scriptable, Styleable, TextF
*/
public function setTextSize($textSize)
{
$this->textSize = (int)$textSize;
$this->textSize = (float)$textSize;
return $this;
}

View File

@ -521,7 +521,7 @@ class Label extends Control implements Actionable, Linkable, NewLineable, MultiL
*/
public function setTextSize($textSize)
{
$this->textSize = (int)$textSize;
$this->textSize = (float)$textSize;
return $this;
}

View File

@ -347,7 +347,7 @@ class TextEdit extends Control implements MultiLineable, Scriptable, Styleable,
*/
public function setTextSize($textSize)
{
$this->textSize = (int)$textSize;
$this->textSize = (float)$textSize;
return $this;
}

View File

@ -145,7 +145,7 @@ class Format implements BackgroundColorable, BgColorable, Renderable, Styleable,
*/
public function setTextSize($textSize)
{
$this->textSize = (int)$textSize;
$this->textSize = (float)$textSize;
return $this;
}

View File

@ -367,7 +367,7 @@ class Style implements BackgroundColorable, BgColorable, Colorable, Renderable,
*/
public function setTextSize($textSize)
{
$this->textSize = (int)$textSize;
$this->textSize = (float)$textSize;
return $this;
}