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
47ae8fa8
Commit
47ae8fa8
authored
Jul 18, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add init function to righthandpanel
parent
9ede4ece
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
righthand-panel.js
src/app/righthand-panel.js
+2
-3
No files found.
src/app/righthand-panel.js
View file @
47ae8fa8
...
@@ -60,8 +60,8 @@ function RighthandPanel (appAPI, events, opts) {
...
@@ -60,8 +60,8 @@ function RighthandPanel (appAPI, events, opts) {
self
.
render
=
function
()
{
return
element
}
self
.
render
=
function
()
{
return
element
}
self
.
init
=
function
()
{
;[...
options
.
children
].
forEach
((
el
)
=>
{
el
.
classList
.
add
(
css
.
options
)
})
;[...
options
.
children
].
forEach
((
el
)
=>
{
el
.
classList
.
add
(
css
.
options
)
})
// ----------------- toggle right hand panel -----------------
// ----------------- toggle right hand panel -----------------
var
hidingRHP
=
false
var
hidingRHP
=
false
...
@@ -121,10 +121,9 @@ function RighthandPanel (appAPI, events, opts) {
...
@@ -121,10 +121,9 @@ function RighthandPanel (appAPI, events, opts) {
})
})
if
(
appAPI
.
config
.
exists
(
EDITOR_WINDOW_SIZE
))
{
if
(
appAPI
.
config
.
exists
(
EDITOR_WINDOW_SIZE
))
{
setTimeout
(
function
()
{
self
.
_api
.
setEditorSize
(
appAPI
.
config
.
get
(
EDITOR_WINDOW_SIZE
))
self
.
_api
.
setEditorSize
(
appAPI
.
config
.
get
(
EDITOR_WINDOW_SIZE
))
},
0
)
}
else
{
}
else
{
appAPI
.
config
.
set
(
EDITOR_WINDOW_SIZE
,
getEditorSize
())
appAPI
.
config
.
set
(
EDITOR_WINDOW_SIZE
,
getEditorSize
())
}
}
}
}
}
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