Skip to content

Commit 585fca4

Browse files
authored
Merge pull request #265 from Geode-solutions/test/cloud_e2e
fix(HybridViewer): useWindow/Element size
2 parents c5a1f83 + 8a718f8 commit 585fca4

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

components/HybridRenderingView.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,16 @@
2020
const container = useTemplateRef("viewer")
2121
const hybridViewerStore = useHybridViewerStore()
2222
const viewerStore = useViewerStore()
23-
const { windowWidth, windowHeight } = useWindowSize()
24-
const { width, height } = useElementSize(container)
23+
24+
const { width: elementWidth, height: elementHeight } =
25+
useElementSize(container)
26+
const { width: windowWidth, height: windowHeight } = useWindowSize()
2527
2628
const debouncedResize = debounce(() => {
27-
hybridViewerStore.resize(width.value, height.value)
29+
hybridViewerStore.resize(elementWidth.value, elementHeight.value)
2830
}, 100)
2931
30-
watch([windowWidth, windowHeight, width, height], () => {
32+
watch([elementWidth, elementHeight, windowWidth, windowHeight], (value) => {
3133
debouncedResize()
3234
})
3335

tests/integration/microservices/back/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@
55
# pip-compile --output-file=tests/integration/microservices/back/requirements.txt tests/integration/microservices/back/requirements.in
66
#
77

8-
opengeodeweb-back==5.*,>=5.13.0

tests/integration/microservices/viewer/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@
55
# pip-compile --output-file=tests/integration/microservices/viewer/requirements.txt tests/integration/microservices/viewer/requirements.in
66
#
77

8-
opengeodeweb-viewer==1.*,>=1.12.0

0 commit comments

Comments
 (0)