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
fd2bf3ad
Commit
fd2bf3ad
authored
Jul 18, 2017
by
Alexander Praetorius
Committed by
GitHub
Jul 18, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12 from ethereum/serapathMaster
add init function to righthandpanel && use appendChild instead of replaceWith && righthandpanel.init()
parents
9ede4ece
6650076c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app.js
src/app.js
+2
-1
righthand-panel.js
src/app/righthand-panel.js
+2
-3
No files found.
src/app.js
View file @
fd2bf3ad
...
@@ -708,7 +708,8 @@ function run () {
...
@@ -708,7 +708,8 @@ function run () {
udapp
:
udapp
.
event
udapp
:
udapp
.
event
}
}
var
righthandPanel
=
new
RighthandPanel
(
rhpAPI
,
rhpEvents
,
{})
// eslint-disable-line
var
righthandPanel
=
new
RighthandPanel
(
rhpAPI
,
rhpEvents
,
{})
// eslint-disable-line
self
.
_view
.
rightpanel
.
replaceWith
(
righthandPanel
.
render
())
self
.
_view
.
rightpanel
.
appendChild
(
righthandPanel
.
render
())
righthandPanel
.
init
()
// ----------------- editor resize ---------------
// ----------------- editor resize ---------------
...
...
src/app/righthand-panel.js
View file @
fd2bf3ad
...
@@ -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