diff options
author | Sebastian Geerken <devnull@localhost> | 2016-04-18 21:11:59 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2016-04-18 21:11:59 +0200 |
commit | eb40226852118f6b24b594c307a6e12b369ceb04 (patch) | |
tree | 39d2432774be7ead0671bb32d7c8f4cd72c214b7 | |
parent | 504f461ee2d4ec9cc3409cd905fa5c4e27544942 (diff) |
Set fallback value for textarea rows to 3.
-rw-r--r-- | dw/fltkui.cc | 3 | ||||
-rw-r--r-- | src/form.cc | 2 |
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; |