diff --git a/webviews/src/views/RokuDeviceView/RokuDeviceView.svelte b/webviews/src/views/RokuDeviceView/RokuDeviceView.svelte
index 55e6ae3a..23cdac9e 100644
--- a/webviews/src/views/RokuDeviceView/RokuDeviceView.svelte
+++ b/webviews/src/views/RokuDeviceView/RokuDeviceView.svelte
@@ -224,7 +224,7 @@
enableScreenshotCapture = false;
if (isInspectingNodes) {
- lastStoreNodesResponse = odc.storeNodeReferences({
+ lastStoreNodesResponse = await odc.storeNodeReferences({
includeNodeCountInfo: true,
includeArrayGridChildren: true,
includeBoundingRectInfo: true
@@ -388,6 +388,7 @@
height: {focusedTreeNode.sceneRect.height}
{/if}
+
{#if screenshotUrl}
{
+ const offset = getOffset(element);
+ document.getElementById('container').scrollTo({
+ left: 0,
+ top: offset.top - 90,
+ behavior: 'auto'
+ });
+ }
+ setTimeout(() => {
+ scrollToElement(self);
+ }, 0);
+ }
}
}
@@ -43,9 +68,7 @@
function doTreeNodesMatch(treeNodeA: TreeNodeWithBase, treeNodeB: TreeNodeWithBase | undefined) {
if (treeNodeB) {
- if (treeNodeA.subtype === 'MainNode') {
- }
- if (treeNodeA.parentRef >= 0 && treeNodeB.parentRef >= 0) {
+ if (treeNodeA.parentRef >= 0 && (treeNodeB.parentRef >= 0 || treeNodeB.parentRef === undefined)) {
// Use key path to compare if we have a parentRef
if (treeNodeA.keyPath === treeNodeB.keyPath && treeNodeB.base === treeNodeB.base) {
return true;
diff --git a/webviews/src/views/SceneGraphInspectorView/SceneGraphInspectorView.svelte b/webviews/src/views/SceneGraphInspectorView/SceneGraphInspectorView.svelte
index 6dca9985..ea806c8d 100644
--- a/webviews/src/views/SceneGraphInspectorView/SceneGraphInspectorView.svelte
+++ b/webviews/src/views/SceneGraphInspectorView/SceneGraphInspectorView.svelte
@@ -141,7 +141,6 @@
}
intermediary.observeEvent(ViewProviderEvent.onTreeNodeFocused, (message) => {
- console.log('received onTreeNodeFocused', message.context.treeNode);
const context = message.context;
selectTreeNode = context.treeNode;
expandTreeNode = context.treeNode;