File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/com/assertthat/selenium_shutterbug/utils/web Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments