From 559c2795f73c46ed7c55c96e35a28e5f5849c09b Mon Sep 17 00:00:00 2001 From: Kajetan Litwinowicz Date: Wed, 28 Aug 2019 11:02:10 +0200 Subject: [PATCH] Don't use convertToPx on value with 'px', parseInt is sufficient. --- plugins/dialog/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dialog/plugin.js b/plugins/dialog/plugin.js index 4022f630078..eee9fe04731 100644 --- a/plugins/dialog/plugin.js +++ b/plugins/dialog/plugin.js @@ -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;