summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgodzilla80@gmx.net <>2009-11-08 11:22:40 +0000
committergodzilla80@gmx.net <>2009-11-08 11:22:40 +0000
commit90bfb3ffe1c6f0127ffd9ce16cc71d1a662b5169 (patch)
treec9749ab75492bfba2c17378882b5d1df5e799966
parent6da632f4b383fac1373ce308e80503c7603f1fc7 (diff)
Fixed Issue #151 - TTextBox fails to display inital line break
-rw-r--r--HISTORY3
-rw-r--r--framework/Web/UI/WebControls/TTextBox.php14
2 files changed, 15 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index 367877b9..bd0722bd 100644
--- a/HISTORY
+++ b/HISTORY
@@ -1,6 +1,7 @@
Version 3.1.7 To be released
-BUG: Issue#166 - E_NOTICE level error in TDataGatewayCommand (Carl)
+BUG: Issue#151 - TTextBox fails to display inital line break (Yves)
BUG: Issue#157 - Enabled does not work properly on TActiveRadioButton/CheckBoxList controls (Bradley, Carl)
+BUG: Issue#166 - E_NOTICE level error in TDataGatewayCommand (Carl)
EHN: Issue#184 - THttpResponse doesn't support custom Content-Type headers, remove charset part of header if THttpResponse.Charset=false (Yves)
BUG: Issue#188 - TDbCache doesn't check if db connection is active. (Yves)
BUG: Issue#189 - Page State corrupted when EnableStateValidation=False (Christophe)
diff --git a/framework/Web/UI/WebControls/TTextBox.php b/framework/Web/UI/WebControls/TTextBox.php
index 4e6a66e9..6fec999f 100644
--- a/framework/Web/UI/WebControls/TTextBox.php
+++ b/framework/Web/UI/WebControls/TTextBox.php
@@ -245,7 +245,7 @@ class TTextBox extends TWebControl implements IPostBackDataHandler, IValidatable
}
/**
- * Returns true if this control validated successfully.
+ * Returns true if this control validated successfully.
* Defaults to true.
* @return bool wether this control validated successfully.
*/
@@ -298,6 +298,18 @@ class TTextBox extends TWebControl implements IPostBackDataHandler, IValidatable
$writer->write(THttpUtility::htmlEncode($this->getText()));
}
+ /**
+ * Renders an additional line-break after the opening tag when it
+ * is in MultiLine text mode.
+ * @param THtmlWriter the writer used for the rendering purpose^M
+ */
+ public function renderBeginTag($writer)
+ {
+ parent::renderBeginTag($writer);
+ if($this->getTextMode()==='MultiLine')
+ $writer->write("\n");
+ }
+
/**
* @return TTextBoxAutoCompleteType the AutoComplete type of the textbox
*/