Skip to content

Commit

Permalink
Removed unnecessary line
Browse files Browse the repository at this point in the history
  • Loading branch information
engineering-this committed Apr 26, 2018
1 parent c77895d commit c4c7024
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/floatpanel/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,8 @@ CKEDITOR.plugins.add( 'floatpanel', {
rect,
rtl = this._.dir == 'rtl';
if ( offsetX === undefined || offsetY === undefined ) {
rectList = this._.editor.getSelection().getRanges()[ 0 ].getClientRects( );
rectList = this._.editor.getSelection().getRanges()[ 0 ].getClientRects();
rect = rectList[ rectList.length - 1 ];
offsetX = rect.left;
offsetX = rtl ? rect.left : rect.right;
offsetY = rect.bottom;
}
Expand Down

0 comments on commit c4c7024

Please sign in to comment.