tiberiuzuld/angular-gridster2

How to get the item dragged always over others?

EfkanKnz opened this issue · 2 comments

Hi,

While dragging, the item dragged is under some items and over others (visually preview).

Is it possible to get the item dragged to be over others?

Item dragged is under:
image

Item dragged is over:
image

Expected behavior: all items z-index: 1 / item dragged: z-index: 2

The item dragged should always be over others, no matter the size.

Thanks

z-index should not be hardwired into styles in the first place :)

i fixed this with

 this.options = {
      ...
      draggable: {
        enabled: true,
        start: (item, dragRef, event: MouseEvent) => {
          dragRef.bringToFront(1);
        }
      }
}