var widget = uploadcare.Widget('[role=uploadcare-uploader]');

function resize() {
    JFCustomWidget.requestFrameResize({
        width: 618,
        height: 500
    });
}

JFCustomWidget.subscribe('ready', function(){
    widget.onDialogOpen(function(){
        resize();
    });
    
    uploadcare.start({
      publicKey: 'demopublickey'
    });
});

@@ -76,12 +76,16 @@
 ize(
+w, h
 ) %7B%0A
-
     
@@ -139,11 +139,9 @@
 th: 
-618
+w
 ,%0A  
@@ -158,11 +158,9 @@
 ht: 
-500
+h
 %0A   
@@ -242,24 +242,30 @@
 en(function(
+dialog
 )%7B%0A        r
@@ -270,16 +270,109 @@
  resize(
+618, 500);%0A        %0A        dialog.always(function() %7B%0A            resize(300, 35);%0A        %7D
 );%0A    %7D

fix resize