feat: Added a conflict resolution dialog and a Conflicts view for easier management of conflicts (#2337)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
export function getAbsolutePositionedParent(element: HTMLElement | null): HTMLElement | null {
|
||||
if (!element) {
|
||||
return null
|
||||
}
|
||||
|
||||
const parent = element.parentElement
|
||||
|
||||
if (!parent) {
|
||||
return null
|
||||
}
|
||||
|
||||
const position = window.getComputedStyle(parent).getPropertyValue('position')
|
||||
|
||||
if (position === 'absolute') {
|
||||
return parent
|
||||
}
|
||||
|
||||
return getAbsolutePositionedParent(parent)
|
||||
}
|
||||
Reference in New Issue
Block a user