Skip to content

getBoundingClientRect #1457

@LeonardoTMorais

Description

@LeonardoTMorais

I had a problem using the framework when all the elements were hidden,
So to fix the bug I've edited these function lines

function _getRect(el, container, adjustForTransform) {
if (el === null) { return; }
and
function _ghostIsLast(evt, axis, el) {
targetS2 = elRect === undefined ? 0 : axis === 'vertical' ? elRect.bottom : elRect.right,
targetS1Opp = elRect === undefined ? 0 : axis === 'vertical' ? elRect.left : elRect.top,
targetS2Opp = elRect === undefined ? 0 : axis === 'vertical' ? elRect.right : elRect.bottom,

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions