Using MSGraphClient to request purely data should not alter the view.
A second scroll bar is being added to the page

Upon investigation there is an adal related iframe causing this to appear if the browser does not have a token to provide (i.e. first load/cache reset)
<iframe id="adalRenewFramehttps://graph.microsoft.com" aria-hidden="true" sandbox="allow-same-origin allow-scripts allow-forms allow-pointer-lock"............
The iframe is set with visibility hidden, when I temporarily set this to display: none the scrollbar disappears
Within chrome clear the application cache, and include an SPFX extension or webpart that utilizes the MSGraphClient
import { override } from '@microsoft/decorators';
import { BaseApplicationCustomizer } from '@microsoft/sp-application-base';
export default class Header extends BaseApplicationCustomizer<any> {
@override
public async onInit(): Promise<void> {
await super.onInit();
const extensionsDataResult = (await this.context.msGraphClientFactory.getClient()).api('/me/extensions').get();
}
}
Note that this may be a duplicate of #1514 but I am unable to determine this without more information
@patmill - this is the issue we were talking about yesterday. Maybe you can direct this to Landis, currently can't figure out how to @-mention him. Thanks! Dirk
@lahuey - any ideas?
The issue is related to the user agent stylesheet of chrome. It applies the following style to all iframes: border-width: 2px;
If SPFx would add border:0; to the inline style of the adal iframes, things should be good.
To overcome this issue in your spfx webpart, you could add the following to your stylesheet for now. But please note that applying global styles is not the recommended way and you should remove it, once MS has fixed/changed this.
:global {
iframe[id^="adal"] {
border:0;
}
}
Are you still seeing this issue? I believe we fixed this issue in the past @2toLeadMike @OliverZeiser
@lahuey No longer an issue! Thanks
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues
Most helpful comment
To overcome this issue in your spfx webpart, you could add the following to your stylesheet for now. But please note that applying global styles is not the recommended way and you should remove it, once MS has fixed/changed this.