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
68ea318e
Unverified
Commit
68ea318e
authored
May 29, 2019
by
yann300
Committed by
GitHub
May 29, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2037 from ethereum/fixAsmCode_whileDebugging
[debugging] Fix asm code view
parents
95866e73
2bef24a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
CodeListView.js
src/app/debugger/debuggerUI/vmDebugger/CodeListView.js
+6
-6
No files found.
src/app/debugger/debuggerUI/vmDebugger/CodeListView.js
View file @
68ea318e
...
...
@@ -15,7 +15,6 @@ function CodeListView () {
this
.
event
=
new
EventManager
()
this
.
code
this
.
address
this
.
codeView
this
.
itemSelected
this
.
basicPanel
=
new
DropdownPanel
(
'Instructions'
,
{
json
:
false
,
displayContentOnly
:
true
})
this
.
basicPanel
.
event
.
register
(
'hide'
,
()
=>
{
...
...
@@ -27,7 +26,8 @@ function CodeListView () {
}
CodeListView
.
prototype
.
render
=
function
()
{
return
yo
`<div id='asmcodes' >
${
this
.
basicPanel
.
render
({
height
:
style
.
instructionsList
.
height
})}
</div>`
this
.
view
=
yo
`<div id='asmcodes' >
${
this
.
basicPanel
.
render
({
height
:
style
.
instructionsList
.
height
})}
</div>`
return
this
.
view
}
CodeListView
.
prototype
.
indexChanged
=
function
(
index
)
{
...
...
@@ -39,14 +39,15 @@ CodeListView.prototype.indexChanged = function (index) {
this
.
itemSelected
.
firstChild
.
removeAttribute
(
'style'
)
}
}
this
.
itemSelected
=
this
.
codeView
.
children
[
index
]
let
codeView
=
this
.
view
.
querySelector
(
'#asmitems'
)
this
.
itemSelected
=
codeView
.
children
[
index
]
this
.
itemSelected
.
style
.
setProperty
(
'background-color'
,
'var(--info)'
)
this
.
itemSelected
.
style
.
setProperty
(
'color'
,
'var(--light)'
)
this
.
itemSelected
.
setAttribute
(
'selected'
,
'selected'
)
if
(
this
.
itemSelected
.
firstChild
)
{
this
.
itemSelected
.
firstChild
.
setAttribute
(
'style'
,
'margin-left: 2px'
)
}
this
.
codeView
.
scrollTop
=
this
.
itemSelected
.
offsetTop
-
parseInt
(
this
.
codeView
.
offsetTop
)
codeView
.
scrollTop
=
this
.
itemSelected
.
offsetTop
-
parseInt
(
codeView
.
offsetTop
)
}
CodeListView
.
prototype
.
reset
=
function
()
{
...
...
@@ -59,8 +60,7 @@ CodeListView.prototype.changed = function (code, address, index) {
}
this
.
code
=
code
this
.
address
=
address
this
.
codeView
=
this
.
renderAssemblyItems
()
this
.
basicPanel
.
setContent
(
this
.
codeView
)
this
.
basicPanel
.
setContent
(
this
.
renderAssemblyItems
())
this
.
indexChanged
(
index
)
}
...
...
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