Skip to content

Commit

Permalink
fix(react-grid-bootstrap4): fix position of dragged column header (#1513
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ushkal committed Oct 22, 2018
1 parent d789d32 commit 8e0893c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/dx-react-grid-bootstrap4/src/templates/drag-drop.jsx
Expand Up @@ -11,6 +11,8 @@ export const Container = ({
style={{
transform: `translate(calc(${clientOffset.x}px - 50%), calc(${clientOffset.y}px - 50%))`,
zIndex: 1000,
left: 0,
top: 0,
...style,
}}
{...restProps}
Expand Down
Expand Up @@ -13,6 +13,8 @@ describe('Container', () => {
expect(tree.find('ul').prop('style'))
.toMatchObject({
transform: 'translate(calc(10px - 50%), calc(20px - 50%))',
left: 0,
top: 0,
});
});

Expand Down

0 comments on commit 8e0893c

Please sign in to comment.