Skip to content

Commit 19ca75e

Browse files
Merge pull request #25 from Geode-solutions/fix_viewer_size
fix(viewer): fix viewer padding
2 parents 177ddc7 + 8386908 commit 19ca75e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

components/RemoteRenderingView.client.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<template>
2-
<div style="position: relative;">
2+
<div style="position: relative; ">
33
<view-toolbar />
44
<v-col style="overflow: hidden; position: relative; z-index: 0; height: 100%; width: 100%" ref="viewer"
5-
@click="get_x_y" @keydown.esc="app_store.toggle_picking_mode(false)">
5+
@click="get_x_y" @keydown.esc="app_store.toggle_picking_mode(false)" class="pa-0">
66
</v-col>
77
</div>
88
</template>
@@ -16,7 +16,7 @@ const { picking_mode } = storeToRefs(viewer_store)
1616
const websocket_store = use_websocket_store()
1717
const { client, is_client_created } = storeToRefs(websocket_store)
1818
19-
function get_x_y(event) {
19+
function get_x_y (event) {
2020
if (picking_mode.value === true) {
2121
const { offsetX, offsetY } = event
2222
viewer_store.set_picked_point(offsetX, offsetY)
@@ -30,8 +30,8 @@ const props = defineProps({
3030
const viewer = ref(null)
3131
const { width, height } = useElementSize(viewer)
3232
33-
function resize() {
34-
view.getCanvasView().setSize(1, 1)
33+
function resize () {
34+
view.getCanvasView().setSize(0, 0)
3535
view.resize();
3636
}
3737
@@ -76,7 +76,7 @@ onMounted(async () => {
7676
}
7777
})
7878
79-
function connect() {
79+
function connect () {
8080
if (!is_client_created.value) { return }
8181
console.log('connecting', client.value)
8282
const session = client.value.getConnection().getSession()

0 commit comments

Comments
 (0)