ngDraggable icon indicating copy to clipboard operation
ngDraggable copied to clipboard

Width of dragged element is not maintained when allowed-transform attribute is set to 'false'

Open dratchkov opened this issue 9 years ago • 1 comments

This can be resolved by modifying line 257 to explicitly include width, like so:

element.css({'left':x+'px','top':y+'px', 'position':'fixed', 'width': element[0].offsetWidth+'px'});

-dave

dratchkov avatar Apr 15 '16 01:04 dratchkov

A 'z-index' is also needed: element.css({'left':x+'px','top':y+'px', 'position':'fixed', 'width': element[0].offsetWidth+'px', 'z-index': 99999});

dratchkov avatar Apr 15 '16 01:04 dratchkov