전략평가 캔들차트 보조지표간 영역 사이즈 조덩
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user