From 2f3576f90e9ece5a006fb1fd5dcc276df5e0ec6a Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 4 Sep 2018 10:50:34 +0200 Subject: [PATCH] Fix image preview not resized correctly in the mediatag dialog --- www/pad/app-pad.less | 3 --- www/pad/mediatag-plugin-dialog.js | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/www/pad/app-pad.less b/www/pad/app-pad.less index 65c38b053..213e21109 100644 --- a/www/pad/app-pad.less +++ b/www/pad/app-pad.less @@ -59,9 +59,6 @@ body.cp-app-pad { display: flex; border-style: solid; border-color: black; - &> * { - flex-shrink: 0; - } } } } diff --git a/www/pad/mediatag-plugin-dialog.js b/www/pad/mediatag-plugin-dialog.js index 88fb43ef6..472525edd 100644 --- a/www/pad/mediatag-plugin-dialog.js +++ b/www/pad/mediatag-plugin-dialog.js @@ -118,7 +118,7 @@ CKEDITOR.dialog.add('mediatag', function (editor) { update(); }); - setTimeout(center); + setTimeout(update); }, onOk: function() { var dialog = this;