jquery-loading icon indicating copy to clipboard operation
jquery-loading copied to clipboard

Bad position

Open Mxater opened this issue 6 years ago • 4 comments

When use loading, and the origin element is modified, the loading layer still in the position, showing in bad position.

imagen

Mxater avatar Sep 02 '18 21:09 Mxater

Waiting a fix too... You have any fix for this ?

lucawen avatar Apr 23 '19 06:04 lucawen

Not I dont have fix, I only use global loading to avoid this.

Mxater avatar Apr 23 '19 14:04 Mxater

I just create a function for create new loading for a div, passing the id of the div, and when i will 'close' the loading, i use the "destroy" call. overlayMapping is a div for store all loading overlays. Can be in the end of page.

var _startLoading = function (item) {
        var html = `
        <div class="custom-overlay" id="idOverlay${item.replace("#", "")}">
            <div class="loading-spinner-container">
            <div class="lds-ring"><div></div><div></div><div></div><div></div></div>
            </div>
        </div>`;
        var el = $(html).appendTo("#overlayMapping");
        $(item).loading({
          overlay: el
        });
    }

lucawen avatar Apr 26 '19 00:04 lucawen

Is this the same as loading doesn't stick to element while scrolling? Open for 2 years? .... time to move on

leijae avatar Feb 27 '21 03:02 leijae