Skip to content

Commit

Permalink
Rebase.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekbogdanski committed Apr 18, 2018
1 parent 4479bf4 commit e69020f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
CKEditor 4 Changelog
CKEditor 4 Changelog
====================

<<<<<<< HEAD
## CKEditor 4.10

New Features:

* [#1761](https://github.com/ckeditor/ckeditor-dev/issues/1761): [Autolink](https://ckeditor.com/cke4/addon/autolink) plugin supports email links.
* [#1703](https://github.com/ckeditor/ckeditor-dev/issues/1703): Introduced Mentions plugin providing autocompletition feature for usernames.

Fixed Issues:

Expand Down
2 changes: 1 addition & 1 deletion plugins/autocomplete/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@
frame = this.editor.window.getFrame(),
editable = this.editor.editable(),
// Bounding rect where view should fit (visible editor viewport).
absoluteRect = editable.isInline() ? editable.getAbsoluteClientRect( this.editor ) : frame.getAbsoluteClientRect( this.editor ),
absoluteRect = editable.isInline() ? editable.getClientRect( true ) : frame.getClientRect( true ),
top;

// If panel does not fit below the rect and fits above, set it there.
Expand Down
16 changes: 8 additions & 8 deletions tests/plugins/autocomplete/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
name: 'editor2',
creator: 'inline'
}
}
};

bender.test( {

Expand Down Expand Up @@ -67,11 +67,11 @@
return {
y: 2,
x: 4
}
};
}
} )
} );

rect = view.getCaretRect();
var rect = view.getCaretRect();

assert.areEqual( 7, rect.bottom );
assert.areEqual( 8, rect.left );
Expand All @@ -92,11 +92,11 @@
return {
y: 2,
x: 4
}
};
}
} )
} );

rect = view.getCaretRect();
var rect = view.getCaretRect();

assert.areEqual( 7, rect.bottom );
assert.areEqual( 8, rect.left );
Expand Down Expand Up @@ -233,7 +233,7 @@
return { x: config.scrollX };
}
} ),
elementStub = sinon.stub( CKEDITOR.dom.element.prototype, 'getAbsoluteClientRect' ).returns( config.absoluteRect );
elementStub = sinon.stub( CKEDITOR.dom.element.prototype, 'getClientRect' ).returns( config.absoluteRect );

view.append();

Expand Down

0 comments on commit e69020f

Please sign in to comment.