hunk.code_window:         // these are going to be used to compute the initial popper offsets
           // and as cache for any modifier that needs them later
           state.measures = {
             reference: getElementClientRect(referenceElement, isFixed),
             // CSS marginsc an be applied to popper elements to quickly
             // apply offsets dynamically based on some CSS selectors.
             // For this reason we include margins in this calculation.
  
hunk.labels: keep keep keep replace keep keep keep
hunk.after_edit:           reference: getElementClientRect(referenceElement, isFixed, false),
  
hunk.file_path: src/index.js
hunk.type: replace
file: // @flow
  import getRectRelativeToOffsetParent from './getRectRelativeToOffsetParent';
  import addClientRectMargins from './addClientRectMargins';
  
  it('works with margins', () => {
    const element = document.createElement('div');
    Object.assign(element.style, { margin: '10px' });
    expect(
      addClientRectMargins(getRectRelativeToOffsetParent(element), element)
    ).toMatchSnapshot();
  });
  