@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everchron/ec-shards",
3
- "version": "4.4.2",
3
+ "version": "4.4.3",
4
4
  "private": false,
5
5
  "description": "Everchron Shards UI Library",
6
6
  "repository": "https://github.com/everchron/ec-shards.git",
@@ -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 - this.offsetLeft
89
+ this.left = event.pageX - this.menuWidth + 2
100
90
  } else {
101
- this.left = event.pageX - 2 - this.offsetLeft
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 - this.offsetTop
95
+ this.top = event.pageY - this.menuHeight + 2
106
96
  } else {
107
- this.top = event.pageY - 2 - this.offsetTop
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: absolute;
153
+ position: fixed;
164
154
  z-index: 1000000;
165
155
  border-radius: $border-radius-medium;
166
156
  background: rgba(255, 255, 255, 0.94);