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) { ...@@ -31,6 +31,8 @@ var createForm = function(typeCreateForm) {
$(idContainer) $(idContainer)
.find('.draggable') .find('.draggable')
.snapToGrid(); .snapToGrid();
resizeFormContainer();
}); });
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
...@@ -38,6 +40,8 @@ var createForm = function(typeCreateForm) { ...@@ -38,6 +40,8 @@ var createForm = function(typeCreateForm) {
$(target) $(target)
.find('.draggable') .find('.draggable')
.snapToGrid(); .snapToGrid();
resizeFormContainer();
}); });
refresh(); refresh();
...@@ -65,10 +69,10 @@ var createForm = function(typeCreateForm) { ...@@ -65,10 +69,10 @@ var createForm = function(typeCreateForm) {
var last = null, var last = null,
lastPosition = 0, lastPosition = 0,
lastHeight = 500, lastHeight = 500,
currentPosition, currentPosition = null,
currentHeight, currentHeight = null,
children = $(idContainer).children(), children = $(idContainer).children(),
newHeight; newHeight = null;
$(children).each(function () { $(children).each(function () {
currentPosition = $(this).offset().top; currentPosition = $(this).offset().top;
......
Supports Markdown
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