ui: fix hasChanged flag, fix auto height for sankey

This commit is contained in:
nick-delirium 2025-02-20 14:21:51 +01:00
parent 724d5a2897
commit 305c7ae064
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0
2 changed files with 3 additions and 2 deletions

View file

@ -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}

View file

@ -260,6 +260,7 @@ export default class Widget {
updateStartPoint(startPoint: any) {
runInAction(() => {
this.startPoint = new FilterItem(startPoint);
this.hasChanged = true;
});
}