fix line -heaigh and and clear button position, fix

This commit is contained in:
vitalets 2013-03-06 17:44:26 +04:00
parent ed7ace61f8
commit 41fd0929bd
2 changed files with 4 additions and 2 deletions
src
editable-form
inputs

@ -5,6 +5,7 @@
.editableform .control-group { .editableform .control-group {
margin-bottom: 0; /* overwrites bootstrap margin */ margin-bottom: 0; /* overwrites bootstrap margin */
white-space: nowrap; /* prevent wrapping buttons on new line */ white-space: nowrap; /* prevent wrapping buttons on new line */
line-height: 20px; /* overwriting bootstrap line-height. See #133 */
} }
.editable-buttons { .editable-buttons {
@ -106,6 +107,7 @@
position: absolute; position: absolute;
opacity: 0.6; opacity: 0.6;
z-index: 100; z-index: 100;
} }
.editable-clear-x:hover { .editable-clear-x:hover {

@ -55,7 +55,7 @@ $(function(){
var that = this; var that = this;
this.t = setTimeout(function() { this.t = setTimeout(function() {
that.toggleClear(e); that.toggleClear(e);
}, 200); }, 100);
}, this)) }, this))
.parent().css('position', 'relative'); .parent().css('position', 'relative');
@ -75,7 +75,7 @@ $(function(){
delta = 3; delta = 3;
} }
this.$clear.css({top: delta, right: delta}); this.$clear.css({bottom: delta, right: delta});
} }
}, },