Browse Source

Fix textarea

Michael Ragazzon 6 years ago
parent
commit
9f142f1ef2

+ 2 - 0
Include/RmlUi/Controls/ElementFormControlTextArea.h

@@ -99,6 +99,8 @@ protected:
 	void OnUpdate() override;
 	void OnUpdate() override;
 	/// Renders the control's widget.
 	/// Renders the control's widget.
 	void OnRender() override;
 	void OnRender() override;
+	/// Resizes and positions the control's widget.
+	void OnResize() override;
 	/// Formats the element.
 	/// Formats the element.
 	void OnLayout() override;
 	void OnLayout() override;
 
 

+ 6 - 0
Source/Controls/ElementFormControlTextArea.cpp

@@ -140,6 +140,12 @@ void ElementFormControlTextArea::OnRender()
 	widget->OnRender();
 	widget->OnRender();
 }
 }
 
 
+// Formats the element.
+void ElementFormControlTextArea::OnResize()
+{
+	widget->OnResize();
+}
+
 // Formats the element.
 // Formats the element.
 void ElementFormControlTextArea::OnLayout()
 void ElementFormControlTextArea::OnLayout()
 {
 {