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() {
127
127
int _viewportHeight = this .getViewportHeight ();
128
128
final int scrollBarMaxWidth = 40 ; // this is probably too high, but better to be safe than sorry
129
129
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?
132
132
if (_viewportHeight < _docHeight )
133
133
_viewportWidth -=scrollBarMaxWidth ; // some space for a scrollbar
134
134
You can’t perform that action at this time.
0 commit comments