Commit 3fa7e41b authored by Théo GUILLON's avatar Théo GUILLON
Browse files

Correction : du redimmentionnement du container lorsqu'il y a des champs

parent e926fec1
......@@ -31,6 +31,8 @@ var createForm = function(typeCreateForm) {
$(idContainer)
.find('.draggable')
.snapToGrid();
resizeFormContainer();
});
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
......@@ -38,6 +40,8 @@ var createForm = function(typeCreateForm) {
$(target)
.find('.draggable')
.snapToGrid();
resizeFormContainer();
});
refresh();
......@@ -65,10 +69,10 @@ var createForm = function(typeCreateForm) {
var last = null,
lastPosition = 0,
lastHeight = 500,
currentPosition,
currentHeight,
currentPosition = null,
currentHeight = null,
children = $(idContainer).children(),
newHeight;
newHeight = null;
$(children).each(function () {
currentPosition = $(this).offset().top;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment