Skip to content

Commit

Permalink
Don't use convertToPx on value with 'px', parseInt is sufficient.
Browse files Browse the repository at this point in the history
  • Loading branch information
engineering-this authored and f1ames committed Sep 9, 2019
1 parent 8805f18 commit 7e45fc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/dialog/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -2105,7 +2105,7 @@ CKEDITOR.DIALOG_STATE_BUSY = 2;
internalWidth = width + dx * ( dialog._.moved ? 1 : 2 ),
internalHeight = height + dy * ( dialog._.moved ? 1 : 2 ),
element = dialog._.element.getFirst(),
right = rtl && CKEDITOR.tools.convertToPx( element.getComputedStyle( 'right' ) ),
right = rtl && parseInt( element.getComputedStyle( 'right' ) ),
position = dialog.getPosition();

position.x = position.x || 0;
Expand Down

0 comments on commit 7e45fc6

Please sign in to comment.