mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-02 21:33:07 +00:00
fix max width for left tooltip position (#8064)
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
parent
e5fbe6cbd5
commit
85160233a8
@ -158,7 +158,7 @@
|
||||
options.maxWidth = `calc(${maxWidth}px - 1.5rem)`
|
||||
options.transform = 'translateY(-50%)'
|
||||
} else if (dir === 'left') {
|
||||
const maxWidth = Math.min(docWidth / 2, docWidth - rectAnchor.x)
|
||||
const maxWidth = Math.min(docWidth / 2, rectAnchor.x)
|
||||
options.top = rectAnchor.y + rectAnchor.height / 2 + 'px'
|
||||
options.right = `calc(${docWidth - rectAnchor.x}px + .75rem)`
|
||||
options.maxWidth = `calc(${maxWidth}px - 1.5rem)`
|
||||
|
Loading…
Reference in New Issue
Block a user