Skip to content

Commit

Permalink
Wrapping cssregions detect delta calculation in a parseInt fixes #940
Browse files Browse the repository at this point in the history
  • Loading branch information
stucox committed May 25, 2013
1 parent ba8ad6b commit fcef368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion feature-detects/css/regions.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ define(['Modernizr', 'createElement', 'docElement'], function( Modernizr, create
content.style[flowIntoProperty] = flowName;
flowedRect = content.getBoundingClientRect();

delta = flowedRect.left - plainRect.left;
delta = parseInt(flowedRect.left - plainRect.left, 10);
docElement.removeChild(container);
content = region = container = undefined;

Expand Down

0 comments on commit fcef368

Please sign in to comment.