huweili-cesium 1.2.56 → 1.2.59
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/js/basis.js +2 -2
- package/js/customToolbarButtons.js +1 -0
- package/package.json +1 -1
package/js/basis.js
CHANGED
|
@@ -790,7 +790,7 @@ export function basicConfig() {
|
|
|
790
790
|
if (!toolbar || typeof window === 'undefined') return
|
|
791
791
|
|
|
792
792
|
const rect = toolbar.getBoundingClientRect()
|
|
793
|
-
toolbar.style.position = '
|
|
793
|
+
toolbar.style.position = 'absolute'
|
|
794
794
|
toolbar.style.left = `${Math.max(rect.left, 0)}px`
|
|
795
795
|
toolbar.style.top = `${Math.max(rect.top, 0)}px`
|
|
796
796
|
toolbar.style.right = 'auto'
|
|
@@ -982,7 +982,7 @@ export function basicConfig() {
|
|
|
982
982
|
const nextLeft = Math.min(Math.max(left, 0), Math.max(maxLeft, 0))
|
|
983
983
|
const nextTop = Math.min(Math.max(top, 0), Math.max(maxTop, 0))
|
|
984
984
|
|
|
985
|
-
toolbar.style.position = '
|
|
985
|
+
toolbar.style.position = 'absolute'
|
|
986
986
|
toolbar.style.left = `${nextLeft}px`
|
|
987
987
|
toolbar.style.top = `${nextTop}px`
|
|
988
988
|
toolbar.style.right = 'auto'
|
|
@@ -92,6 +92,7 @@ export function createCustomToolbarButtons() {
|
|
|
92
92
|
toolbar.style.minWidth = 'unset'
|
|
93
93
|
toolbar.style.flexWrap = 'nowrap'
|
|
94
94
|
toolbar.style.position = 'absolute'
|
|
95
|
+
toolbar.style.setProperty('insert', 'auto', 'important')
|
|
95
96
|
|
|
96
97
|
return buttons.map(opt => addToolbarButton(viewer, opt)).filter(Boolean)
|
|
97
98
|
}
|