From 0850f83787b2f8485deb8a42f8cd7d6fa10003e7 Mon Sep 17 00:00:00 2001 From: beu Date: Thu, 14 Apr 2022 00:59:18 +0200 Subject: [PATCH] Change type of TextSize to float --- libs/FML/Controls/Entry.php | 2 +- libs/FML/Controls/Label.php | 2 +- libs/FML/Controls/TextEdit.php | 2 +- libs/FML/Elements/Format.php | 2 +- libs/FML/Stylesheet/Style.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/FML/Controls/Entry.php b/libs/FML/Controls/Entry.php index ceb535f3..d9ed08df 100644 --- a/libs/FML/Controls/Entry.php +++ b/libs/FML/Controls/Entry.php @@ -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; } diff --git a/libs/FML/Controls/Label.php b/libs/FML/Controls/Label.php index 61b50043..4bf1639b 100644 --- a/libs/FML/Controls/Label.php +++ b/libs/FML/Controls/Label.php @@ -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; } diff --git a/libs/FML/Controls/TextEdit.php b/libs/FML/Controls/TextEdit.php index 4f499801..4dfbd07c 100644 --- a/libs/FML/Controls/TextEdit.php +++ b/libs/FML/Controls/TextEdit.php @@ -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; } diff --git a/libs/FML/Elements/Format.php b/libs/FML/Elements/Format.php index 0b312a49..8540f447 100644 --- a/libs/FML/Elements/Format.php +++ b/libs/FML/Elements/Format.php @@ -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; } diff --git a/libs/FML/Stylesheet/Style.php b/libs/FML/Stylesheet/Style.php index 70657c04..01cf3be3 100644 --- a/libs/FML/Stylesheet/Style.php +++ b/libs/FML/Stylesheet/Style.php @@ -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; }