重命名输入框的宽度和父元素保持一致。但是由于父元素有padding属性。顶部的标签栏宽度不一致

This commit is contained in:
lizanle 2015-09-22 16:44:12 +08:00
parent b4561fa68d
commit 814ad5a365
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@
ele = domEle;
tagId = id;
taggableType = type;
domEle.html('<input name="" id="renameTagName" maxlength="<%=Setting.tags_max_length%>" minlength="<%= Setting.tags_min_length%>" style="width: 100px;" value="'+name+'"/>');
domEle.html('<input name="" id="renameTagName" maxlength="<%=Setting.tags_max_length%>" minlength="<%= Setting.tags_min_length%>" style="width:'+domEle.css('width') +'" value="'+name+'"/>');
domEle.parent().css("border","1px solid #ffffff");
$("#renameTagName").focus();
}