ui: fix hasChanged flag, fix auto height for sankey
This commit is contained in:
parent
724d5a2897
commit
305c7ae064
2 changed files with 3 additions and 2 deletions
|
|
@ -415,7 +415,7 @@ const EChartsSankey: React.FC<Props> = (props) => {
|
|||
const dynamicMinHeight = finalNodeCount * 15;
|
||||
containerStyle = {
|
||||
width: '100%',
|
||||
minHeight: dynamicMinHeight,
|
||||
minHeight: Math.max(550, dynamicMinHeight),
|
||||
height: '100%',
|
||||
overflowY: 'auto',
|
||||
};
|
||||
|
|
@ -427,7 +427,7 @@ const EChartsSankey: React.FC<Props> = (props) => {
|
|||
}
|
||||
|
||||
return (
|
||||
<div style={{ maxHeight: 620, overflow: 'auto', maxWidth: 1240, }}>
|
||||
<div style={{ maxHeight: 620, overflow: 'auto', maxWidth: 1240, minHeight: 240 }}>
|
||||
<div
|
||||
ref={chartRef}
|
||||
style={containerStyle}
|
||||
|
|
|
|||
|
|
@ -260,6 +260,7 @@ export default class Widget {
|
|||
updateStartPoint(startPoint: any) {
|
||||
runInAction(() => {
|
||||
this.startPoint = new FilterItem(startPoint);
|
||||
this.hasChanged = true;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue