알림목록 화면오류 수정
This commit is contained in:
@@ -358,6 +358,13 @@ const TradingChart: React.FC<TradingChartProps> = ({
|
||||
required = mgr.resetPaneHeights(wrapperH);
|
||||
}
|
||||
|
||||
if (paneLayoutClamp) {
|
||||
try {
|
||||
const w = wrapper.clientWidth;
|
||||
if (w > 0 && wrapperH > 0) mgr.resize(w, wrapperH);
|
||||
} catch { /* ok */ }
|
||||
}
|
||||
|
||||
if (!paneLayoutClamp && required > wrapperH + 4) {
|
||||
container.style.height = `${required}px`;
|
||||
} else {
|
||||
@@ -730,7 +737,10 @@ const TradingChart: React.FC<TradingChartProps> = ({
|
||||
useEffect(() => {
|
||||
if (!containerRef.current) return;
|
||||
|
||||
const mgr = new ChartManager(containerRef.current, theme);
|
||||
const mgr = new ChartManager(containerRef.current, theme, {
|
||||
compactPaneLayout: paneLayoutClamp,
|
||||
autoSize: !paneLayoutClamp,
|
||||
});
|
||||
managerRef.current = mgr;
|
||||
setChartMgr(mgr);
|
||||
if (!volumeVisibleRef.current) {
|
||||
|
||||
Reference in New Issue
Block a user