Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
46c88da0
Commit
46c88da0
authored
Aug 08, 2019
by
LianaHus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove manual resiing of panels
parent
081dc27b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
13 deletions
+3
-13
app.js
src/app.js
+1
-1
panels-resize.js
src/lib/panels-resize.js
+2
-12
No files found.
src/app.js
View file @
46c88da0
...
@@ -141,7 +141,7 @@ class App {
...
@@ -141,7 +141,7 @@ class App {
init
()
{
init
()
{
var
self
=
this
var
self
=
this
self
.
_components
.
resizeFeature
=
new
PanelsResize
(
'#side-panel'
,
'#editor-container'
,
{
'minWidth'
:
3
0
0
,
x
:
450
})
self
.
_components
.
resizeFeature
=
new
PanelsResize
(
'#side-panel'
,
'#editor-container'
,
{
'minWidth'
:
3
3
0
,
x
:
450
})
run
.
apply
(
self
)
run
.
apply
(
self
)
}
}
...
...
src/lib/panels-resize.js
View file @
46c88da0
...
@@ -99,20 +99,10 @@ export default class PanelsResize {
...
@@ -99,20 +99,10 @@ export default class PanelsResize {
}
}
minimize
()
{
minimize
()
{
let
panel1Width
=
0
this
.
panel1
.
style
.
display
=
'none'
let
panel2left
=
this
.
panel1
.
offsetLeft
+
panel1Width
let
panel2Width
=
this
.
panel2
.
parentElement
.
clientWidth
-
this
.
panel1
.
offsetLeft
-
panel1Width
this
.
panel1
.
style
.
width
=
panel1Width
+
'px'
this
.
panel2
.
style
.
left
=
panel2left
+
'px'
this
.
panel2
.
style
.
width
=
panel2Width
+
'px'
}
}
maximise
()
{
maximise
()
{
let
panel1Width
=
this
.
opt
.
minWidth
this
.
panel1
.
style
.
display
=
'flex'
let
panel2left
=
this
.
panel1
.
offsetLeft
+
panel1Width
let
panel2Width
=
this
.
panel2
.
parentElement
.
clientWidth
-
this
.
panel1
.
offsetLeft
-
panel1Width
this
.
panel1
.
style
.
width
=
panel1Width
+
'px'
this
.
panel2
.
style
.
left
=
panel2left
+
'px'
this
.
panel2
.
style
.
width
=
panel2Width
+
'px'
}
}
}
}
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