I'm programming a web application that uses webrtc and the build in screen capture api of Chrome with getDisplayMedia.
In Chrome Browser i am experiencing a strange behaviour when sharing a non fullscreen window. The window is cropped by about 7 pixels on the left and bottom side in the captured stream. I noticed this effect when sharing a Mircosoft Excel Window (that is not in fullscreen), as there are plenty elements that are close the the window border. When i maximize the window it is not cropped in the stream.
I'm using Google Chrome Version 89.0.4389.128 (64-bit) and a standard 1080p monitor on Windows 10.
I've been able to replicate this issue in the getDiplayMedia demo of webrtc experiments, too. I didn't find an open bug report for Chrome for this issue. Did i miss something? Am i doing something wrong?
Any help or info would be highly appreciated.