10" x-init="// Thêm class khi component được khởi tạo
$nextTick(() => {
// Đảm bảo các style được tính toán lại khi resize
const updatePosition = () => {
// Force re-calculate styles
const _ = this.buttonPosition;
};
window.addEventListener('resize', updatePosition);
return () => window.removeEventListener('resize', updatePosition);
})">