Skip to content

Popover in absolute positioned container #224

@abelenekes

Description

@abelenekes

Hi Sandy,

Thanks for this great plugin, it's the best we've seen so far.
I encountered the following problem when I was trying to place a popover in an absolute positioned container:

Uncaught TypeError: Cannot read property 'left' of undefined
    at WebuiPopover.getPlacement (eval at globalEval (jquery.min.js:2), <anonymous>:830:44)
    at WebuiPopover.displayContent (eval at globalEval (jquery.min.js:2), <anonymous>:439:34)
    at WebuiPopover.show (eval at globalEval (jquery.min.js:2), <anonymous>:354:22)
    at WebuiPopover.toggle (eval at globalEval (jquery.min.js:2), <anonymous>:315:72)
    at HTMLSpanElement.f (jquery.min.js:2)
    at HTMLSpanElement.dispatch (jquery.min.js:3)
    at HTMLSpanElement.r.handle (jquery.min.js:3)

I examined your code, and it seems the getElementPosition function of the plugin doesn't handle absolute position.
Fortunately I can use a fixed container in my particular case, but I wanted to let you know of this issue.

Cheers,
Ábel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions