Bug 1465644 - Part 3. Hide Splitter if the network panel detail has not opened. r=honza

Network monitor has the splitter box. This splitter is displayed between the
request list panel and network details panel. However, this splitter is
displayed even if the network details panel has not displayed.

This patch will set the spliter size to zero if the network details panel
is collapsed.

--HG--
extra : rebase_source : c20abd113ee91402bd80cf257d7e61e5b3bbdba1
extra : amend_source : e43345ba289907c1b10744e17b102f7775618e78
This commit is contained in:
Mantaroh Yoshinaga 2018-08-22 16:08:27 +09:00
parent b5919ca49c
commit 095f89b569

View File

@ -149,7 +149,7 @@ class MonitorPanel extends Component {
initialHeight: initialHeight,
minSize: "50px",
maxSize: "80%",
splitterSize: 1,
splitterSize: networkDetailsOpen ? 1 : 0,
startPanel: RequestList({ isEmpty, connector }),
endPanel: networkDetailsOpen && NetworkDetailsPanel({
ref: "endPanel",