pull-element icon indicating copy to clipboard operation
pull-element copied to clipboard

pullLeft does not work when child element of target is wider then target

Open sjbuysse opened this issue 6 years ago • 1 comments

Hi,

There are situations in which a target element can have child elements that are wider than the target itself. One situation that I encountered was when my target had a child component that used the bootstrap row class, but I hadn't wrapped the row in a div with the container class.

When the child element is wider than the parent, the target not being able to pull to the left.

@Lucifier129 this is because isScrollRightEnd is set to false in getScrollEndingInfo

This doesn't necessarily have to be fixed (you can solve it by making sure that your target element does not have a child that is wider then the target), just wanted to put out this issue so that people don't struggle with this in the future.

Loving the library @Lucifier129 , thanks!

sjbuysse avatar Jan 09 '19 15:01 sjbuysse

Thanks for the feedback. It is very useful.

Lucifier129 avatar Jan 10 '19 05:01 Lucifier129