Commit afe0d1a9 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Do not decrease textarea size to less than 2

parent f61b748d
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
} }
if (this.state.focused) { if (this.state.focused) {
textarea.setAttribute('rows', this.state.value.split('\n').length); textarea.setAttribute('rows', Math.max(this.state.value.split('\n').length, 2));
} else { } else {
textarea.setAttribute('rows', 2); textarea.setAttribute('rows', 2);
} }
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>954.27455.2029.68</string> </value> <value> <string>954.45675.44850.53452</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1476194310.55</float> <float>1478794055.21</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment