Skip to content

Commit

Permalink
Fixed scroll on property and stack to show first line
Browse files Browse the repository at this point in the history
  • Loading branch information
Станислав authored and Станислав committed Jan 28, 2013
1 parent 2bc94b0 commit 3986357
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions swi.py
Expand Up @@ -280,7 +280,7 @@ def scriptParsed(self, data, notification):
files = glob.glob(folder + "\\" + "\\".join(url_parts))
else:
files = glob.glob(folder + "/" + "/".join(url_parts))

if len(files) > 0 and files[0] != '':
file_name = files[0]
file_to_scriptId.append({'file': file_name, 'scriptId': str(scriptId), 'sha1': hashlib.sha1(data['url']).hexdigest()})
Expand Down Expand Up @@ -820,7 +820,7 @@ def console_print_properties(command):
v.insert_click(insert_position, insert_position + insert_length - 1, 'get_params', {'objectId': prop.value.objectId, 'name': prop.name, 'prev': prev})

v.end_edit(edit)
v.show(v.size())
v.show(0)


def console_show_stack(callFrames):
Expand Down Expand Up @@ -855,7 +855,7 @@ def console_show_stack(callFrames):
v.insert_click(insert_position, insert_position + insert_length - 1, 'get_params', {'objectId': scope.object.objectId, 'name': "%s:%s (%s)" % (file_name, line, scope.type)})

v.end_edit(edit)
v.show(v.size())
v.show(0)


####################################################################################
Expand Down

0 comments on commit 3986357

Please sign in to comment.