Change treeMode hide card (#221)
diff --git a/src/components/TraceStack/index.js b/src/components/TraceStack/index.js
index d5974b6..1589db5 100644
--- a/src/components/TraceStack/index.js
+++ b/src/components/TraceStack/index.js
@@ -64,7 +64,7 @@
}
componentDidMount() {
-
+
this.state.width = this.axis.parentNode.clientWidth - 50;
this.drawAxis();
this.displayData();
@@ -339,7 +339,7 @@
const tabList = [];
const contentList = {};
if (span.content) {
-
+
tabList.push({
key: 'tags',
tab: 'Tags',
@@ -428,11 +428,11 @@
<div className={styles.stack}>
<div style={{ paddingBottom: 10 }}>
<ButtonGroup>
- <Button type={stateData.treeMode ? "primary": ""} onClick={() => this.setState({treeMode:true})}>TreeMode</Button>
- <Button type={stateData.treeMode ? "": "primary"} onClick={() => this.setState({treeMode: false})}>ListMode</Button>
+ <Button type={stateData.treeMode ? "primary": ""} onClick={async () => {await this.setState({treeMode:true}); this.hideSpanModal();}}>TreeMode</Button>
+ <Button type={stateData.treeMode ? "": "primary"} onClick={async () => {await this.setState({treeMode: false}); this.hideSpanModal();}}>ListMode</Button>
</ButtonGroup>
</div>
-
+
<div style={{ paddingBottom: 10 }}>
{ legendButtons }
</div>