Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dlink
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhaowei
dlink
Commits
4c5df378
Commit
4c5df378
authored
Dec 15, 2021
by
godkaikai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "解决sql编辑器因浏览器宽高改变而消失的问题"
This reverts commit
ded7f026
.
parent
ded7f026
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
index.tsx
dlink-web/src/components/Studio/index.tsx
+4
-7
No files found.
dlink-web/src/components/Studio/index.tsx
View file @
4c5df378
...
...
@@ -21,14 +21,11 @@ type StudioProps = {
rightClickMenu
:
StateType
[
'rightClickMenu'
];
dispatch
:
any
;
};
const
elementwidth
=
document
.
documentElement
.
clientWidth
;
const
elementHeight
=
document
.
documentElement
.
clientHeight
;
const
Studio
:
React
.
FC
<
StudioProps
>
=
(
props
)
=>
{
const
{
rightClickMenu
,
toolHeight
,
toolLeftWidth
,
toolRightWidth
,
dispatch
}
=
props
;
const
[
form
]
=
Form
.
useForm
();
const
VIEW
=
{
leftToolWidth
:
300
,
marginTop
:
116
,
...
...
@@ -39,13 +36,13 @@ const Studio: React.FC<StudioProps> = (props) => {
midMargin
:
46
,
};
const
[
size
,
setSize
]
=
useState
({
width
:
elementw
idth
-
1
,
height
:
elem
entHeight
,
width
:
document
.
documentElement
.
clientW
idth
-
1
,
height
:
document
.
documentElement
.
cli
entHeight
,
});
const
onResize
=
useCallback
(()
=>
{
setSize
({
width
:
elementw
idth
-
1
,
height
:
elem
entHeight
,
width
:
document
.
documentElement
.
clientW
idth
-
1
,
height
:
document
.
documentElement
.
cli
entHeight
,
})
},
[]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment