diff --git a/src/editable-form/editable-form.css b/src/editable-form/editable-form.css index 83b43aa..d07e06a 100644 --- a/src/editable-form/editable-form.css +++ b/src/editable-form/editable-form.css @@ -5,6 +5,7 @@ .editableform .control-group { margin-bottom: 0; /* overwrites bootstrap margin */ white-space: nowrap; /* prevent wrapping buttons on new line */ + line-height: 20px; /* overwriting bootstrap line-height. See #133 */ } .editable-buttons { @@ -106,6 +107,7 @@ position: absolute; opacity: 0.6; z-index: 100; + } .editable-clear-x:hover { diff --git a/src/inputs/text.js b/src/inputs/text.js index 97e7d9e..df5dd5a 100644 --- a/src/inputs/text.js +++ b/src/inputs/text.js @@ -55,7 +55,7 @@ $(function(){ var that = this; this.t = setTimeout(function() { that.toggleClear(e); - }, 200); + }, 100); }, this)) .parent().css('position', 'relative'); @@ -75,7 +75,7 @@ $(function(){ delta = 3; } - this.$clear.css({top: delta, right: delta}); + this.$clear.css({bottom: delta, right: delta}); } },