Browse Source

Merge pull request #6812 from nocodb/nc-fix/group-by-col-dnd

Fixed column dnd for group by
pull/6816/head
Raju Udava 1 year ago committed by GitHub
parent
commit
ea1ffc1a4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      packages/nc-gui/components/smartsheet/grid/useColumnDrag.ts

6
packages/nc-gui/components/smartsheet/grid/useColumnDrag.ts

@ -48,7 +48,11 @@ export const useColumnDrag = ({
e.dataTransfer.setData('text/plain', colId) e.dataTransfer.setData('text/plain', colId)
draggedCol.value = fields.value.find((f) => f.id === colId) ?? null draggedCol.value = fields.value.find((f) => f.id === colId) ?? null
dragColPlaceholderDomRef.value!.style.height = `${tableBodyEl.value?.getBoundingClientRect().height}px`
const remInPx = parseFloat(getComputedStyle(document.documentElement).fontSize)
const placeholderHeight = tableBodyEl.value?.getBoundingClientRect().height ?? 6.1 * remInPx
dragColPlaceholderDomRef.value!.style.height = `${placeholderHeight}px`
const x = e.clientX - leftSidebarWidth.value const x = e.clientX - leftSidebarWidth.value

Loading…
Cancel
Save