Commit afd8abfa authored by zhengke's avatar zhengke

优化滚动

parent 8753aa6e
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
:style="{ :style="{
width: viewportStyles.width * canvasScale + 'px', width: viewportStyles.width * canvasScale + 'px',
height: viewportStyles.height * canvasScale + 'px', height: viewportStyles.height * canvasScale + 'px',
left: viewportStyles.left<0? '0px':(viewportStyles.left) + 'px', left: viewportStyles.left<0? '5px':(viewportStyles.left) + 'px',
top: viewportStyles.top<0? '0px':(viewportStyles.top) + 'px', top: viewportStyles.top<0? '5px':(viewportStyles.top) + 'px',
}" }"
> >
<div class="operates"> <div class="operates">
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<Thumbnails class="layout-content-left" /> <Thumbnails class="layout-content-left" />
<div class="layout-content-center" style="overflow: hidden;"> <div class="layout-content-center" style="overflow: hidden;">
<CanvasTool class="center-top" /> <CanvasTool class="center-top" />
<div style="height: calc(100% - 40px);overflow: scroll;"> <div style="height: calc(100% - 40px);overflow: scroll;background: #f9f9f9;">
<!-- <Canvas class="center-body" :style="{ height: `calc(100% - 40px)`}" /> --> <!-- <Canvas class="center-body" :style="{ height: `calc(100% - 40px)`}" /> -->
<Canvas class="center-body" :style="{ height: '100%'}" /> <Canvas class="center-body" :style="{ height: '100%'}" />
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment