Skip to content

Commit 2a2af61

Browse files
author
Chris K
committed
DFL-3393 Editing a CSS declaration shows edit field with double height
1 parent 1e26184 commit 2a2af61

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/scripts/dom.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -923,11 +923,9 @@ window.CustomElements.AutoScrollHeightFeature = function()
923923
if (!this.value)
924924
{
925925
this.style.height = "auto";
926-
this.rows = 1;
927926
}
928927
else
929928
{
930-
this.rows = 0;
931929
this.style.height = "0";
932930
this.style.height = this.scrollHeight + delta + "px";
933931
}
@@ -946,6 +944,7 @@ window.CustomElements.AutoScrollHeightFeature = function()
946944

947945
(this._inits || (this._inits = [])).push(function(ele)
948946
{
947+
ele.setAttribute("rows", "1");
949948
var delta = this._get_delta(ele);
950949
var adjust_height = this._adjust_height.bind(ele, delta);
951950
adjust_height();

0 commit comments

Comments
 (0)