Skip to content

Commit 6de649e

Browse files
Add TODO to probable bug code
1 parent aed5969 commit 6de649e

File tree

1 file changed

+2
-2
lines changed
  • src/main/java/com/assertthat/selenium_shutterbug/utils/web

1 file changed

+2
-2
lines changed

src/main/java/com/assertthat/selenium_shutterbug/utils/web/Browser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ public BufferedImage takeScreenshotEntirePageDefault() {
127127
int _viewportHeight = this.getViewportHeight();
128128
final int scrollBarMaxWidth = 40; // this is probably too high, but better to be safe than sorry
129129

130-
if (_viewportWidth < _docWidth || (_viewportHeight < _docHeight && _viewportWidth - scrollBarMaxWidth < _docWidth))
131-
_viewportHeight-=scrollBarMaxWidth; // some space for a scrollbar
130+
if (_viewportWidth < _docWidth || (_viewportHeight < _docHeight && _viewportWidth - scrollBarMaxWidth < _docWidth))
131+
_viewportHeight -= scrollBarMaxWidth; // some space for a scrollbar // TODO viewportHeight and scrollVarMaxWidth?
132132
if (_viewportHeight < _docHeight)
133133
_viewportWidth-=scrollBarMaxWidth; // some space for a scrollbar
134134

0 commit comments

Comments
 (0)