chore: format
This commit is contained in:
@@ -154,8 +154,12 @@
|
||||
}
|
||||
|
||||
const availableHeight = Math.max(0, openAbove ? spaceAbove : spaceBelow);
|
||||
const constrainedHeight = contentHeight ? Math.min(contentHeight, availableHeight) : contentHeight;
|
||||
const preferredTop = openAbove ? rect.top - constrainedHeight - sideOffset : rect.bottom + sideOffset;
|
||||
const constrainedHeight = contentHeight
|
||||
? Math.min(contentHeight, availableHeight)
|
||||
: contentHeight;
|
||||
const preferredTop = openAbove
|
||||
? rect.top - constrainedHeight - sideOffset
|
||||
: rect.bottom + sideOffset;
|
||||
const contentWidth = contentEl.offsetWidth || 0;
|
||||
const preferredLeft = align === 'end' && contentWidth ? rect.right - contentWidth : rect.left;
|
||||
const maxLeft = contentWidth ? viewportRight - contentWidth - pad : preferredLeft;
|
||||
|
||||
Reference in New Issue
Block a user