mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Merge "Fix JS error in ve.ui.ClippableContainer"
This commit is contained in:
commit
8a5d4c55eb
|
@ -90,6 +90,11 @@ ve.ui.ClippableElement.prototype.isClipped = function () {
|
|||
* @chainable
|
||||
*/
|
||||
ve.ui.ClippableElement.prototype.clip = function () {
|
||||
if ( !this.clipping ) {
|
||||
// this.$clippableContainer and this.$clippableWindow are null, so the below will fail
|
||||
return this;
|
||||
}
|
||||
|
||||
var buffer = 10,
|
||||
cOffset = this.$clippable.offset(),
|
||||
ccOffset = this.$clippableContainer.offset() || { 'top': 0, 'left': 0 },
|
||||
|
|
Loading…
Reference in a new issue