return { w: rect.width, h: rect.height };
});
- // Switch container to relative positioning
+ // Switch container to relative positioning and remove flex layout
container.style.position = 'relative';
container.style.display = 'block';
+ container.classList.remove('flex', 'flex-wrap');
var padding = 8; // px gap between tags
var aStep = 0.3; // radians per spiral step
}
});
- // Set container height to fit all tags + 2rem bottom padding
- container.style.height = (maxBottom - minTop + 48) + 'px';
+ // Set container height to fit all tags + 2rem bottom padding (32px)
+ container.style.height = (maxBottom - minTop + 32) + 'px';
});
});