Skip to content

Commit

Permalink
fix: add width and height to cloned node
Browse files Browse the repository at this point in the history
Fixes #31
  • Loading branch information
Alberto Fernández authored and mattlewis92 committed Jan 11, 2017
1 parent 0764466 commit 75ce122
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/resizable.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,8 @@ export class Resizable implements OnInit, OnDestroy, AfterViewInit {
this.renderer.setElementStyle(currentResize.clonedNode, 'position', 'fixed');
this.renderer.setElementStyle(currentResize.clonedNode, 'left', `${currentResize.startingRect.left}px`);
this.renderer.setElementStyle(currentResize.clonedNode, 'top', `${currentResize.startingRect.top}px`);
this.renderer.setElementStyle(currentResize.clonedNode, 'height', `${currentResize.startingRect.height}px`);
this.renderer.setElementStyle(currentResize.clonedNode, 'width', `${currentResize.startingRect.width}px`);
this.renderer.setElementStyle(currentResize.clonedNode, 'cursor', 'auto');
}
this.resizeStart.emit({
Expand Down

0 comments on commit 75ce122

Please sign in to comment.