Skip to content

Commit

Permalink
Fix bounds-expansion when style is disabled (headless)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkfranz committed Jan 17, 2019
1 parent 102cda6 commit 4246945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/collection/dimensions/bounds.js
Expand Up @@ -435,7 +435,7 @@ let boundingBoxImpl = function( ele, options ){
let x, y; // node pos
let displayed = display !== 'none';
let rstyle = _p.rstyle;
let manualExpansion = isNode ? ele.pstyle('bounds-expansion').pfValue : 0;
let manualExpansion = isNode && styleEnabled ? ele.pstyle('bounds-expansion').pfValue : 0;

if( displayed ){
let overlayOpacity = 0;
Expand Down

0 comments on commit 4246945

Please sign in to comment.