Index: components/crash/core/browser/resources/crashes.js |
diff --git a/components/crash/core/browser/resources/crashes.js b/components/crash/core/browser/resources/crashes.js |
index 89a0bea508d545b866bf6cc69117b632d1543fa3..9b2bbfa14f2125b970ceb339fed5cc47a0fbfcb6 100644 |
--- a/components/crash/core/browser/resources/crashes.js |
+++ b/components/crash/core/browser/resources/crashes.js |
@@ -33,6 +33,9 @@ function updateCrashList( |
$('disabledMode').hidden = enabled; |
$('crashUploadStatus').hidden = !enabled || !dynamicBackend; |
+ // Make the height fixed while clearing the |
+ // element in order to maintain scroll position. |
+ crashSection.style.height = getComputedStyle(crashSection).height; |
// Clear any previous list. |
crashSection.textContent = ''; |
@@ -141,6 +144,8 @@ function updateCrashList( |
crashSection.appendChild(crashBlock); |
} |
+ // Reset the height, in order to accommodate for the new content. |
+ crashSection.style.height = ""; |
$('noCrashes').hidden = crashes.length != 0; |
} |