Skip to content

Commit

Permalink
fix(viewer): fix viewer padding
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienChampagnol committed Sep 22, 2023
1 parent 177ddc7 commit fa12e28
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions components/RemoteRenderingView.client.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<template>
<div style="position: relative;">
<div style="position: relative; width:100%; height:100%">
<view-toolbar />
<v-col style="overflow: hidden; position: relative; z-index: 0; height: 100%; width: 100%" ref="viewer"
@click="get_x_y" @keydown.esc="app_store.toggle_picking_mode(false)">
@click="get_x_y" @keydown.esc="app_store.toggle_picking_mode(false)" class="pa-0">
</v-col>
</div>
</template>
Expand All @@ -16,7 +16,7 @@ const { picking_mode } = storeToRefs(viewer_store)
const websocket_store = use_websocket_store()
const { client, is_client_created } = storeToRefs(websocket_store)
function get_x_y(event) {
function get_x_y (event) {
if (picking_mode.value === true) {
const { offsetX, offsetY } = event
viewer_store.set_picked_point(offsetX, offsetY)
Expand All @@ -30,8 +30,8 @@ const props = defineProps({
const viewer = ref(null)
const { width, height } = useElementSize(viewer)
function resize() {
view.getCanvasView().setSize(1, 1)
function resize () {
view.getCanvasView().setSize(0, 0)
view.resize();
}
Expand Down Expand Up @@ -76,7 +76,7 @@ onMounted(async () => {
}
})
function connect() {
function connect () {
if (!is_client_created.value) { return }
console.log('connecting', client.value)
const session = client.value.getConnection().getSession()
Expand Down

0 comments on commit fa12e28

Please sign in to comment.