Skip to content

Commit

Permalink
Fixed TString edition (textarea instead of input)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbenard authored and pperidont committed Jan 11, 2018
1 parent 48f4cc9 commit f7a1e9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions bin/style.hss
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,11 @@ div#menu {
color: #444488;
word-break: CSS("break-word");
hyphen: CSS("auto");
textarea {
min-height: 100px;
width: 100%;
height: 100%;
}
}

td.t_int.zero, td.t_float.zero {
Expand Down
2 changes: 1 addition & 1 deletion src/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ class Main extends Model {
switch( c.type ) {
case TInt, TFloat, TString, TId, TCustom(_), TDynamic:
v.empty();
var i = J("<input>");
var i = J(c.type==TString?"<textarea>":"<input>");
v.addClass("edit");
i.appendTo(v);
if( val != null )
Expand Down

0 comments on commit f7a1e9e

Please sign in to comment.