Resize div box in angular from the opposite corner

Viewed 300

• I just want to resize a square from the left not the right

• Here is the code I used:

My Stackblitz Code

• My desired result:

enter image description here

• Thanks for your help.

2 Answers

Well, it's not a good practice to do this, but make your selector .dragHandle.rb like this:

.dragHandle.rb {
  width: 15px;
  height: 15px;
  cursor: nwse-resize;
  transform: translate3d(0px, 235px, 235px) !important;
}

After trying many solutions I recommende to use the package angular2-draggable which allows users to resize from all sides.

Thanks for your answers.

Related