Issue #2154775 by yvesvanlaer, er.pushpinderrana, kirkkala, barnettech, InternetDevels | Wim Leers: Fixed In-place editing of title: works, but cursor is invisible.

8.0.x
Alex Pott 2014-09-09 16:07:56 +01:00
parent 986b32ec46
commit 61215d0400
1 changed files with 2 additions and 25 deletions

View File

@ -218,8 +218,7 @@
this._widthAttributeIsEmpty = true;
this.$el
.addClass('quickedit-animate-disable-width')
.css('width', this.$el.width())
.css('background-color', this._getBgColor(this.$el));
.css('width', this.$el.width());
}
// 2) Add padding; use animations.
@ -258,8 +257,7 @@
if (this._widthAttributeIsEmpty) {
this.$el
.addClass('quickedit-animate-disable-width')
.css('width', '')
.css('background-color', '');
.css('width', '');
}
// 2) Remove padding; use animations (these will run simultaneously with)
@ -289,27 +287,6 @@
this.$el.removeData('quickedit-padded');
},
/**
* Gets the background color of an element (or the inherited one).
*
* @param DOM $e
*/
_getBgColor: function ($e) {
var c;
if ($e === null || $e[0].nodeName === 'HTML') {
// Fallback to white.
return 'rgb(255, 255, 255)';
}
c = $e.css('background-color');
// TRICKY: edge case for Firefox' "transparent" here; this is a
// browser bug: https://bugzilla.mozilla.org/show_bug.cgi?id=635724
if (c === 'rgba(0, 0, 0, 0)' || c === 'transparent') {
return this._getBgColor($e.parent());
}
return c;
},
/**
* Gets the top and left properties of an element.
*