Remove the double borders in layout inspector.

The tool window is providing the borders, we should not have borders
on the content. Remove the border on the JBScrollPanes used.

Bug: 122274789
Test: N/A
Change-Id: I306857d475d9e4d243b8f1f4dac1434772f5e92a
diff --git a/layout-inspector/src/com/android/tools/idea/layoutinspector/tree/LayoutInspectorTreePanel.kt b/layout-inspector/src/com/android/tools/idea/layoutinspector/tree/LayoutInspectorTreePanel.kt
index 76dda5a..298e583 100644
--- a/layout-inspector/src/com/android/tools/idea/layoutinspector/tree/LayoutInspectorTreePanel.kt
+++ b/layout-inspector/src/com/android/tools/idea/layoutinspector/tree/LayoutInspectorTreePanel.kt
@@ -21,6 +21,7 @@
 import com.android.tools.idea.layoutinspector.model.InspectorView
 import com.intellij.ui.components.JBScrollPane
 import com.intellij.ui.treeStructure.Tree
+import com.intellij.util.ui.JBUI
 import java.util.Enumeration
 import javax.swing.tree.DefaultTreeModel
 import javax.swing.tree.TreeNode
@@ -33,6 +34,7 @@
   private val contentPane = JBScrollPane(tree)
 
   init {
+    contentPane.border = JBUI.Borders.empty()
     tree.selectionModel.selectionMode = TreeSelectionModel.SINGLE_TREE_SELECTION
     tree.addTreeSelectionListener { e ->
       (e.newLeadSelectionPath?.lastPathComponent as MyTreeNode?)?.let {
diff --git a/layout-inspector/src/com/android/tools/idea/layoutinspector/ui/DeviceViewPanel.kt b/layout-inspector/src/com/android/tools/idea/layoutinspector/ui/DeviceViewPanel.kt
index f460081..d0b8daf 100644
--- a/layout-inspector/src/com/android/tools/idea/layoutinspector/ui/DeviceViewPanel.kt
+++ b/layout-inspector/src/com/android/tools/idea/layoutinspector/ui/DeviceViewPanel.kt
@@ -40,6 +40,7 @@
 import com.intellij.openapi.application.ApplicationManager
 import com.intellij.openapi.util.text.StringUtil
 import com.intellij.ui.components.JBScrollPane
+import com.intellij.util.ui.JBUI
 import icons.StudioIcons
 import java.awt.BorderLayout
 import javax.swing.BorderFactory
@@ -87,6 +88,7 @@
   private val scrollPane = JBScrollPane(contentPanel)
 
   init {
+    scrollPane.border = JBUI.Borders.empty()
     client.register(Common.Event.EventGroupIds.SKIA_PICTURE) { handleSkiaPictureEvent(it) }
 
     layoutInspector.modelChangeListeners.add(::modelChanged)