fix: container style

This commit is contained in:
zyc9012 2022-03-20 16:46:39 +08:00
parent 79fb669e64
commit 6ad995e2d4
4 changed files with 11 additions and 8 deletions

View File

@ -1,6 +1,7 @@
<style>
html,
body {
body,
#root {
width: 100%;
height: 100%;
margin: 0 !important;

View File

@ -16,7 +16,6 @@
}
.fortune-sheet-canvas {
position: absolute;
width: 100%;
height: 100%;
}

View File

@ -1194,7 +1194,15 @@ const Sheet: React.FC<Props> = ({ data }) => {
);
return (
<div className="fortune-sheet-overlay" ref={containerRef} tabIndex={-1}>
<div
className="fortune-sheet-overlay"
ref={containerRef}
tabIndex={-1}
style={{
width: context.luckysheetTableContentHW[0],
height: context.luckysheetTableContentHW[1],
}}
>
<div className="fortune-col-header-wrap">
<div
className="fortune-left-top"

View File

@ -1,11 +1,6 @@
.luckysheet-sheet-area {
width: 100%;
box-sizing: border-box;
position: absolute;
right: 0;
bottom: 0;
left: 0;
/* background-color: #f6f6f6; */
background-color: #fafafc;
color: #444;
height: 31px;