a5hik / ng-sortable

AngularJS Library for Drag and Drop, supports Sortable and Draggable. Supports Touch devices.
http://a5hik.github.io/ng-sortable/
MIT License
1.15k stars 314 forks source link

Do not pre-style sortable items #201

Open HadrienPierart opened 9 years ago

HadrienPierart commented 9 years ago

I just got upgraded through a minor upgrade with a bower install and I realized that now, a few styles are automatically added on sortable elements. As these styles contains margins, it completely broke my design and component...

Please do not insert default styles like that in a library, especially not without mentionning it in the documentation and through a minor upgrade !

Is there any reason this CSS was added to the library ?

The main culprit seems to be : .as-sortable-item, .as-sortable-placeholder { min-height: 20px; margin: 1px 2px 5px 1px; border-radius: 10px; }

Thanks !

tobiasbueschel commented 7 years ago

@HadrienPierart good point :) This has already been fixed by the following: https://github.com/a5hik/ng-sortable/commit/5652dbdbd7f831c766762d967b79d63eabb07d5c

@a5hik I think we can close this?