瀏覽代碼

Resize the panel when group are open/close

Amauri CHAMPEAUX 4 年之前
父節點
當前提交
3b097efceb
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      tarteaucitron.js

+ 1 - 0
tarteaucitron.js

@@ -633,6 +633,7 @@ var tarteaucitron = {
                             document.querySelector('#tarteaucitronServices_' + cat).style.display = 'none';
                             document.querySelector('#tarteaucitronServices_' + cat).style.display = 'none';
                             tarteaucitron.addClickEventToId("tarteaucitron-toggle-group-" + cat, function () {
                             tarteaucitron.addClickEventToId("tarteaucitron-toggle-group-" + cat, function () {
                                 tarteaucitron.userInterface.toggle('tarteaucitronServices_' + cat);
                                 tarteaucitron.userInterface.toggle('tarteaucitronServices_' + cat);
+                                tarteaucitron.userInterface.jsSizing('main');
                             });
                             });
                             tarteaucitron.addClickEventToId("tarteaucitron-accept-group-" + cat, function () {
                             tarteaucitron.addClickEventToId("tarteaucitron-accept-group-" + cat, function () {
                                 tarteaucitron.userInterface.respondAll(true, cat);
                                 tarteaucitron.userInterface.respondAll(true, cat);