summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2016-04-18 21:11:59 +0200
committerSebastian Geerken <devnull@localhost>2016-04-18 21:11:59 +0200
commiteb40226852118f6b24b594c307a6e12b369ceb04 (patch)
tree39d2432774be7ead0671bb32d7c8f4cd72c214b7
parent504f461ee2d4ec9cc3409cd905fa5c4e27544942 (diff)
Set fallback value for textarea rows to 3.
-rw-r--r--dw/fltkui.cc3
-rw-r--r--src/form.cc2
2 files changed, 4 insertions, 1 deletions
diff --git a/dw/fltkui.cc b/dw/fltkui.cc
index 09965ea7..712b914f 100644
--- a/dw/fltkui.cc
+++ b/dw/fltkui.cc
@@ -1040,6 +1040,9 @@ FltkMultiLineTextResource::FltkMultiLineTextResource (FltkPlatform *platform,
numCols = cols;
numRows = rows;
+ DBG_OBJ_SET_NUM ("numCols", numCols);
+ DBG_OBJ_SET_NUM ("numRows", numRows);
+
// Check values. Upper bound check is left to the caller.
if (numCols < 1) {
MSG_WARN("numCols = %d is set to 1.\n", numCols);
diff --git a/src/form.cc b/src/form.cc
index 8c966ff2..af219000 100644
--- a/src/form.cc
+++ b/src/form.cc
@@ -659,7 +659,7 @@ void Html_tag_content_textarea(DilloHtml *html, const char *tag, int tagsize)
} else {
if (html->DocType != DT_HTML || html->DocTypeVersion <= 4.01f)
BUG_MSG("<textarea> requires rows attribute.");
- rows = 2;
+ rows = 3;
}
if (rows < 1 || rows > MAX_ROWS) {
int badRows = rows;