Skip to content

Commit

Permalink
fix(htmlimage): reduced amount of imageObserver padding
Browse files Browse the repository at this point in the history
  • Loading branch information
jsimck committed Aug 31, 2018
1 parent 1ba91b0 commit 9ca44a5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/image/HtmlImage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,7 @@ export default class HtmlImage extends React.PureComponent {
let extendedPadding =
this.props.extendedPadding ||
Math.max(
Math.round(
$UIComponentHelper.componentPositions.getWindowViewportRect().height *
2
),
Math.round($UIComponentHelper.componentPositions.getWindowViewportRect().height),
MIN_EXTENDED_PADDING
);

Expand Down

0 comments on commit 9ca44a5

Please sign in to comment.