Skip to content

Commit

Permalink
Fix bug with inline-block elements
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwcomeau committed Apr 12, 2016
1 parent 797cbef commit 7da3a94
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions dist/react-flip-move.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,8 @@ return /******/ (function(modules) { // webpackBootstrap
var relativeBox = {
'top': childBox['top'] - parentBox['top'],
'left': childBox['left'] - parentBox['left'],
'right': childBox['right'] - parentBox['right'],
'bottom': childBox['bottom'] - parentBox['bottom']
'right': parentBox['right'] - childBox['right'],
'bottom': parentBox['bottom'] - childBox['bottom']
};

return _extends({}, boxes, _defineProperty({}, child.key, relativeBox));
Expand Down Expand Up @@ -416,7 +416,7 @@ return /******/ (function(modules) { // webpackBootstrap
domNode.style.position = 'absolute';
domNode.style.top = leavingBoundingBox.top - computed.marginTop + 'px';
domNode.style.left = leavingBoundingBox.left - computed.marginLeft + 'px';
domNode.style.right = leavingBoundingBox.right + computed.marginRight + 'px';
domNode.style.right = leavingBoundingBox.right - computed.marginRight + 'px';
});
}

Expand Down
Loading

0 comments on commit 7da3a94

Please sign in to comment.