File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
projects/igniteui-angular/src/lib/grid Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -187,8 +187,9 @@ export function autoWire(markForCheck = false) {
187
187
188
188
@Injectable ( )
189
189
export class IgxColumnMovingService {
190
- private _column : IgxColumnComponent ;
191
190
private _icon : any ;
191
+ private _column : IgxColumnComponent ;
192
+ private _target : IgxColumnComponent ;
192
193
193
194
get column ( ) : IgxColumnComponent {
194
195
return this . _column ;
@@ -199,6 +200,15 @@ export class IgxColumnMovingService {
199
200
}
200
201
}
201
202
203
+ get target ( ) : IgxColumnComponent {
204
+ return this . _target ;
205
+ }
206
+ set target ( val : IgxColumnComponent ) {
207
+ if ( val ) {
208
+ this . _target = val ;
209
+ }
210
+ }
211
+
202
212
get icon ( ) : any {
203
213
return this . _icon ;
204
214
}
@@ -308,7 +318,8 @@ export class IgxColumnMovingDragDirective extends IgxDragDirective {
308
318
const s = document . defaultView . getComputedStyle ( this . element . nativeElement ) ;
309
319
this . _dragGhost . style . width = Math . ceil ( range . getBoundingClientRect ( ) . width +
310
320
parseFloat ( s . borderRightWidth ) + parseFloat ( s . borderLeftWidth ) + parseFloat ( s . paddingLeft ) +
311
- parseFloat ( s . paddingRight ) + icon . getBoundingClientRect ( ) . width ) + 'px' ;
321
+ parseFloat ( s . paddingRight ) + icon . getBoundingClientRect ( ) . width ) +
322
+ parseFloat ( document . defaultView . getComputedStyle ( icon ) . marginRight ) + 'px' ;
312
323
313
324
this . left = this . _dragStartX = event . clientX -
314
325
( ( ( range . getBoundingClientRect ( ) . width + parseFloat ( s . paddingLeft ) + parseFloat ( s . paddingRight ) ) / 3 ) * 2 ) ;
You can’t perform that action at this time.
0 commit comments