전략평가 캔들차트 보조지표간 영역 사이즈 조덩

This commit is contained in:
Macbook
2026-06-22 01:28:37 +09:00
parent 649a4ab5e8
commit f5e5bbfdff
2 changed files with 19 additions and 3 deletions
+9 -3
View File
@@ -428,8 +428,11 @@ const TradingChart: React.FC<TradingChartProps> = ({
const updateHandle = () => {
const layouts = mgr.getPaneLayouts();
const candle = layouts.find(l => l.paneIndex === 0);
const hasAux = layouts.some(l => l.paneIndex >= 2 && l.height > 20);
if (candle && candle.height > 20 && hasAux) {
// pane 1 = 볼륨(표시 시) 또는 첫 보조지표(볼륨 숨김) — paneIndex>=2 만 보면 후자에서 핸들 누락
const subPaneHeight = layouts
.filter(l => l.paneIndex > 0)
.reduce((sum, l) => sum + l.height, 0);
if (candle && candle.height > 20 && subPaneHeight > 60) {
setCandlePaneBottomY(candle.topY + candle.height);
} else {
setCandlePaneBottomY(null);
@@ -1818,7 +1821,10 @@ const TradingChart: React.FC<TradingChartProps> = ({
<span> ...</span>
</div>
)}
<div className="chart-main-row">
<div
className="chart-main-row"
style={showRightToolbar ? undefined : ({ '--sidebar-w': '0px' } as React.CSSProperties)}
>
<div
ref={containerRef}
className="chart-container"