@mixd-id/web-scaffold 0.1.230406056 → 0.1.230406057
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
|
@@ -144,19 +144,18 @@ export default {
|
|
|
144
144
|
this.$nextTick(() => {
|
|
145
145
|
const rect = caller.getBoundingClientRect()
|
|
146
146
|
|
|
147
|
-
top = Math.round(rect.y + rect.height
|
|
147
|
+
top = Math.round(rect.y + rect.height)
|
|
148
148
|
transformOrigin = 'top left'
|
|
149
|
-
maxHeight = this.$refs.contextMenu.clientHeight > window.innerHeight * .8 ?
|
|
150
|
-
Math.round(window.innerHeight * .8) : this.$refs.contextMenu.clientHeight + 30
|
|
151
149
|
|
|
152
|
-
if(top
|
|
150
|
+
if(top > (window.innerHeight / 2)){
|
|
153
151
|
top = undefined
|
|
154
|
-
bottom = rect.
|
|
152
|
+
bottom = Math.round(window.innerHeight - rect.y)
|
|
155
153
|
transformOrigin = 'bottom left'
|
|
156
|
-
transform = 'translate3d(0, -
|
|
154
|
+
transform = 'translate3d(0, -10px, 0)'
|
|
157
155
|
}
|
|
158
156
|
else{
|
|
159
157
|
transform = 'translate3d(0, 10px, 0)'
|
|
158
|
+
maxHeight = window.innerHeight - top - 36
|
|
160
159
|
}
|
|
161
160
|
|
|
162
161
|
this.computedStyle = {
|