File tree 3 files changed +14
-5
lines changed 3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 346
346
/* inner popup */
347
347
.vp-inner-popup-box {
348
348
position : absolute;
349
- left : 50% ;
350
- top : 50% ;
351
- transform : translate (-50% , -50% );
349
+ left : calc (50% - 200px );
350
+ top : calc (50% - 150px );
352
351
min-width : 400px ;
353
352
min-height : 150px ;
354
353
width : 30% ;
355
- height : fit-content ;
354
+ height : 300 px ;
356
355
background-color : white;
357
356
z-index : 200 ;
358
357
border : 0.25px solid var (--border-gray-color );
Original file line number Diff line number Diff line change @@ -394,6 +394,12 @@ define([
394
394
} ) ;
395
395
}
396
396
} ) ;
397
+
398
+ // inner popup draggable
399
+ $ ( this . wrapSelector ( '.vp-inner-popup-box' ) ) . draggable ( {
400
+ handle : '.vp-inner-popup-title' ,
401
+ containment : 'parent'
402
+ } ) ;
397
403
}
398
404
399
405
_unbindResizable ( ) {
Original file line number Diff line number Diff line change @@ -760,9 +760,10 @@ define([
760
760
return content . toString ( ) ;
761
761
}
762
762
763
- openInputPopup = function ( type , width = 0 , height = 0 ) {
763
+ openInputPopup = function ( type , width = 400 , height = 300 ) {
764
764
var title = '' ;
765
765
var content = '' ;
766
+ let size = { width : width , height : height } ;
766
767
767
768
switch ( parseInt ( type ) ) {
768
769
case FRAME_EDIT_TYPE . ADD_COL :
@@ -793,6 +794,9 @@ define([
793
794
794
795
this . state . popup . type = type ;
795
796
797
+ // set size
798
+ $ ( this . wrapSelector ( '.vp-inner-popup-box' ) ) . css ( size ) ;
799
+
796
800
// set content
797
801
$ ( this . wrapSelector ( '.vp-inner-popup-body' ) ) . html ( content ) ;
798
802
You can’t perform that action at this time.
0 commit comments