INNER CODE UNIT · JavaScript

positionBar

Corsinvest/cv4pve-admin · src/Corsinvest.ProxmoxVE.Admin.Core/wwwroot/js/cv4pve.js:11

    function positionBar(bar, dialog) {
        const r = dialog.getBoundingClientRect();
        bar.style.top = r.top + 'px';
        bar.style.height = r.height + 'px';
        bar.style.left = r.left + 'px';
    }

    function attach(dialog) {
        if (dialog.dataset.resizerAttached) return;
        dialog.dataset.resizerAttached = 'true';

        setTimeout(function () {
            const bar = document.createElement('div');
            bar.className = 'rz-dialog-resize-bar cv4pve-side-dialog-resizer';
            bar.title = 'Drag to resize';
            bar.setAttribute('aria-label', 'Resize side dialog');
            const span = document.createElement('span');
            span.className = 'rz-resize';

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…