Skip to content

Commit 9ca44a5

Browse files
committed
fix(htmlimage): reduced amount of imageObserver padding
1 parent 1ba91b0 commit 9ca44a5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/image/HtmlImage.jsx

+1-4
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,7 @@ export default class HtmlImage extends React.PureComponent {
173173
let extendedPadding =
174174
this.props.extendedPadding ||
175175
Math.max(
176-
Math.round(
177-
$UIComponentHelper.componentPositions.getWindowViewportRect().height *
178-
2
179-
),
176+
Math.round($UIComponentHelper.componentPositions.getWindowViewportRect().height),
180177
MIN_EXTENDED_PADDING
181178
);
182179

0 commit comments

Comments
 (0)