Commit 8891cb7a by Matjaz Gregoric

Fix sizing bug where large item bank would expand the container.

When measuring the available width, we have to hide the item bank so
that it does not expand the container.
parent 6c13c13c
...@@ -638,6 +638,7 @@ function DragAndDropTemplates(configuration) { ...@@ -638,6 +638,7 @@ function DragAndDropTemplates(configuration) {
// image to 100%, so that it doesn't expand the container. // image to 100%, so that it doesn't expand the container.
if (ctx.drag_container_max_width === null) { if (ctx.drag_container_max_width === null) {
target_img_style.maxWidth = '100%'; target_img_style.maxWidth = '100%';
item_bank_properties.style = {display: 'none'};
} else { } else {
drag_container_style.maxWidth = ctx.drag_container_max_width + 'px'; drag_container_style.maxWidth = ctx.drag_container_max_width + 'px';
} }
......
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