Skip to content

Commit a507962

Browse files
Change position draggable parent. Relative->absolute
1 parent 05581df commit a507962

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-drag-resize",
3-
"version": "1.0.2",
4-
"description": "Vue Component for resiza and drag elements",
3+
"version": "1.0.3",
4+
"description": "Vue Component for resize and drag elements",
55
"author": "Kirill Murashov <me@kirillmurashov.com>",
66
"main": "dist/index.js",
77
"scripts": {

src/app.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<template>
22
<div id="app">
3-
<VueDragResize :isActive="true" :w="200" :h="200" v-on:resizing="resize" v-on:dragging="resize">
3+
<VueDragResize :isActive="true" :w="200" :h="200" :parentLimitation="false" v-on:resizing="resize" v-on:dragging="resize">
44
<h3>Hello World!</h3>
55
<p>{{ top }} х {{ left }} </p>
66
<p>{{ width }} х {{ height }}</p>
77
</VueDragResize>
8+
89
</div>
910
</template>
1011

@@ -16,6 +17,8 @@
1617
box-sizing: border-box;
1718
width: 600px;
1819
height: 800px;
20+
21+
position: relative;
1922
}
2023
2124
h3 {

src/components/vue-drag-resize.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
}
44

55
.vdr {
6-
position: relative;
6+
position: absolute;
77
box-sizing: border-box;
88
border: 1px dashed rgba(0,0,0,0);
99
}

0 commit comments

Comments
 (0)