重命名输入框的宽度和父元素保持一致。但是由于父元素有padding属性。顶部的标签栏宽度不一致
This commit is contained in:
parent
b4561fa68d
commit
814ad5a365
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue