Closed webcat12345 closed 6 years ago
I hope this will help you to little.
Actually, I disabled these line inside node_modules directory.
node_modules/angular2-grid/directives/NgGrid.js
Also same on _resizeStop event.
added feature gridItem overlap. By default this feature is disabled. This can be enabled by setting 'allow_overlap': true in NgGridConfig.
Please see pull request.
This feature has been added to v2.3.0
Currently, if we drag widget to other then it pushed other widget. There could be an option to allow overlaps.
Gitter history:
webcat_black @webcat12345 15:48 I am building this using angular2-grid, and I have to implement overlap feature, any possibility?
Ben Morton @BTMorton 15:49 It should definitely be possible with a config option, and then just ignoring call to fixGridCollisions or whatever it's called
webcat_black @webcat12345 15:50 Thanks for your super fast response!
Ben Morton @BTMorton 15:50 the main issue, I guess, would be with figuring out which should be on top, in which case you'd have to add some kind of zpos
webcat_black @webcat12345 15:50 Yes. Which one should be top.... this problem could be solved by activa state I made.
Ben Morton @BTMorton 15:52 yeah, you could just do a [attr.style]="'z-index: '+state" or similar. Feel free to re-open the issue and title it something like "Add option to allow item overlaps". I guess you'd also have to fix it to cascade: off