diff --git a/src/components/TradingStatePanel/TradingStatePanel.js b/src/components/TradingStatePanel/TradingStatePanel.js index a7d61330d..6fac2b5e1 100644 --- a/src/components/TradingStatePanel/TradingStatePanel.js +++ b/src/components/TradingStatePanel/TradingStatePanel.js @@ -181,12 +181,12 @@ const TradingStatePanel = ({ className='hfui-tradingstatepanel__wrapper' moveable={moveable} removeable={removeable} + onRemove={onRemove} > isHistoryActive && setShowAOsHistory(false)} > { tradesProps={commonComponentProps} bookProps={commonComponentProps} chartProps={commonComponentProps} + sharedProps={commonComponentProps} /> diff --git a/src/redux/reducers/ui/index.js b/src/redux/reducers/ui/index.js index 44532c7d6..81811b774 100644 --- a/src/redux/reducers/ui/index.js +++ b/src/redux/reducers/ui/index.js @@ -438,8 +438,9 @@ function reducer(state = getInitialState(), action = {}) { const layoutDef = getActiveLayoutDef(state) const x = _min(_map(layoutDef.layout, l => l.x)) || 0 const y = _max(_map(layoutDef.layout, l => l.y)) || 0 + const lastLayoutItemHeight = _get(layoutDef, 'layout[-1].h', 0) - const newY = y + layoutDef.layout[layoutDef?.layout?.length - 1]?.h + const newY = y + lastLayoutItemHeight return { ...state,