react-ace
react-ace copied to clipboard
Tooltip position in modal popup
Hi,
I have an issue with Tooltip position when ReactAce inside modal popup.
Popup uses CreatePortal API and appear in document.body
Maybe there are way how to correct Tooltip
positions? Maybe I can forward some props to ReactAce
(like tooltioNode
/ tooltipContainer
or smth like this)
Now I'm overwriting Tooltip.prototype.setPosition
, but this solution is bad, I think...
How it looks:
Popup style:
the issue is caused because of transform: translate property, removing that should fix the issue, there are several other CSS which can give you an overall similar effect.