vue-draggable-resizable icon indicating copy to clipboard operation
vue-draggable-resizable copied to clipboard

Add positioning option with css top, left

Open recoshet opened this issue 5 years ago • 2 comments

Some components have problems with positioning, if usage css transform. Example I local change this code https://github.com/mauricius/vue-draggable-resizable/blob/e0f1a0ba8467f9d81d9def81db6aae59596dbb99/src/components/vue-draggable-resizable.vue#L781

  computed: {
    style () {
      return {
        // transform: `translate(${this.left}px, ${this.top}px)`,
        left: this.left + 'px',
        top: this.top + 'px',
        width: this.computedWidth,
        height: this.computedHeight,
        zIndex: this.zIndex,
        ...(this.dragging && this.disableUserSelect ? userSelectNone : userSelectAuto)
      }
    },

This solved my problem, I propose to implement various ways of positioning

recoshet avatar Nov 03 '20 08:11 recoshet

I had the same problem

jex518 avatar Dec 04 '20 14:12 jex518

transform:translateX(${this.left}px) translateY(${this.top}px) left top 会溢出,上面代码经过测试没问题,可以试试

tanglewang avatar Nov 25 '22 09:11 tanglewang