@everchron/ec-shards 4.4.2 → 4.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ec-shards.common.js +31 -44
- package/dist/ec-shards.common.js.map +1 -1
- package/dist/ec-shards.css +1 -1
- package/dist/ec-shards.umd.js +31 -44
- package/dist/ec-shards.umd.js.map +1 -1
- package/dist/ec-shards.umd.min.js +1 -1
- package/dist/ec-shards.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/context-menu/context-menu.vue +5 -15
package/package.json
CHANGED
|
@@ -48,16 +48,6 @@ export default {
|
|
|
48
48
|
/** If passed, an icon will appear. The list of available icon names can be found [here](https://github.com/everchron/ec-shards/tree/main/src/assets/icons). */
|
|
49
49
|
icon: {
|
|
50
50
|
type: String
|
|
51
|
-
},
|
|
52
|
-
/** Use the offset of the context menu appears in a scrollable container which does not start at the very top of the browser window. For example, pass the pixel height value of the everchron navigation bar and toolbar. */
|
|
53
|
-
offsetTop: {
|
|
54
|
-
type: Number,
|
|
55
|
-
default: 0
|
|
56
|
-
},
|
|
57
|
-
/** Use the offset of the context menu appears in a scrollable container which does not start at the very left of the browser window. For example, pass the pixel width value of a left hand sidebar. */
|
|
58
|
-
offsetLeft: {
|
|
59
|
-
type: Number,
|
|
60
|
-
default: 0
|
|
61
51
|
}
|
|
62
52
|
},
|
|
63
53
|
|
|
@@ -96,15 +86,15 @@ export default {
|
|
|
96
86
|
}
|
|
97
87
|
|
|
98
88
|
if (this.menuWidth + event.pageX >= window.innerWidth) {
|
|
99
|
-
this.left = event.pageX - this.menuWidth + 2
|
|
89
|
+
this.left = event.pageX - this.menuWidth + 2
|
|
100
90
|
} else {
|
|
101
|
-
this.left = event.pageX - 2
|
|
91
|
+
this.left = event.pageX - 2
|
|
102
92
|
}
|
|
103
93
|
|
|
104
94
|
if (this.menuHeight + event.pageY >= window.innerHeight) {
|
|
105
|
-
this.top = event.pageY - this.menuHeight + 2
|
|
95
|
+
this.top = event.pageY - this.menuHeight + 2
|
|
106
96
|
} else {
|
|
107
|
-
this.top = event.pageY - 2
|
|
97
|
+
this.top = event.pageY - 2
|
|
108
98
|
}
|
|
109
99
|
this.opened = true
|
|
110
100
|
},
|
|
@@ -160,7 +150,7 @@ export default {
|
|
|
160
150
|
padding: 0;
|
|
161
151
|
display: none;
|
|
162
152
|
list-style: none;
|
|
163
|
-
position:
|
|
153
|
+
position: fixed;
|
|
164
154
|
z-index: 1000000;
|
|
165
155
|
border-radius: $border-radius-medium;
|
|
166
156
|
background: rgba(255, 255, 255, 0.94);
|