Skip to content

Commit

Permalink
Merge pull request #494 from entrylabs/feature/recover-text-input
Browse files Browse the repository at this point in the history
recover text input
  • Loading branch information
chanlee authored Oct 20, 2016
2 parents 25b9cfa + f3f70df commit 285238f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -22961,7 +22961,7 @@ Entry.Utils.inherit(Entry.Field, Entry.FieldTextInput);
this.textElement = this.svgGroup.elem("text", {x:3, y:4, "font-size":"12px"});
this.textElement.textContent = this.truncate();
var a = this.getTextWidth(), b = this.position && this.position.y ? this.position.y : 0, c = this._CONTENT_HEIGHT;
this._header = this.svgGroup.elem("rect", {width:a, height:c, y:b - c / 2, rx:3, ry:3, fill:"transparent"});
this._header = this.svgGroup.elem("rect", {width:a, height:c, y:b - c / 2, rx:3, ry:3, fill:"#fff", "fill-opacity":.4});
this.svgGroup.appendChild(this.textElement);
this._bindRenderOptions();
this.box.set({x:0, y:0, width:a, height:c});
Expand Down
3 changes: 2 additions & 1 deletion src/workspace/field/textInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ Entry.Utils.inherit(Entry.Field, Entry.FieldTextInput);
height: CONTENT_HEIGHT,
y: y,
rx: 3, ry: 3,
fill: "transparent"
fill: "#fff",
'fill-opacity': 0.4
});

this.svgGroup.appendChild(this.textElement);
Expand Down

0 comments on commit 285238f

Please sign in to comment.