File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
cms/static/cms/js/modules Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -699,6 +699,9 @@ $(document).ready(function () {
699
699
el . addClass ( 'cms_dragitem-expanded' ) . parent ( ) . find ( '> .cms_draggables' ) . show ( ) ;
700
700
}
701
701
702
+ // make sure structurboard gets updated after expanding
703
+ $ ( window ) . trigger ( 'resize.sideframe' ) ;
704
+
702
705
// save settings
703
706
CMS . API . Toolbar . setSettings ( settings ) ;
704
707
} ) ;
@@ -784,6 +787,8 @@ $(document).ready(function () {
784
787
tpl . fadeOut ( function ( ) {
785
788
$ ( this ) . remove ( )
786
789
} ) ;
790
+ // make sure structurboard gets updated after success
791
+ $ ( window ) . trigger ( 'resize.sideframe' ) ;
787
792
}
788
793
789
794
} ) ;
Original file line number Diff line number Diff line change @@ -353,7 +353,7 @@ $(document).ready(function () {
353
353
'dropOnEmpty' : true ,
354
354
'forcePlaceholderSize' : true ,
355
355
'helper' : 'clone' ,
356
- 'appendTo' : 'body ' ,
356
+ 'appendTo' : '.cms_structure-content ' ,
357
357
'cursor' : 'move' ,
358
358
'opacity' : 0.4 ,
359
359
'zIndex' : 9999999 ,
@@ -382,6 +382,11 @@ $(document).ready(function () {
382
382
$ ( this ) . show ( ) ;
383
383
}
384
384
} ) ;
385
+ // add overflow hidden to body
386
+ $ ( '.cms_structure-content' ) . css ( {
387
+ 'height' : $ ( document ) . height ( ) ,
388
+ 'overflow' : 'hidden'
389
+ } ) ;
385
390
} ,
386
391
387
392
'stop' : function ( event , ui ) {
@@ -416,6 +421,12 @@ $(document).ready(function () {
416
421
$ ( this ) . hide ( ) ;
417
422
}
418
423
} ) ;
424
+
425
+ // add overflow hidden to body
426
+ $ ( '.cms_structure-content' ) . css ( {
427
+ 'height' : '' ,
428
+ 'overflow' : ''
429
+ } ) ;
419
430
} ,
420
431
'isAllowed' : function ( placeholder , placeholderParent , originalItem ) {
421
432
// cancel if action is excecuted
You can’t perform that action at this time.
0 commit comments