Skip to content

Commit ed47c1b

Browse files
committed
use constant.
1 parent 03bbe35 commit ed47c1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

IdentityCore/src/webview/embeddedWebview/ui/mac/MSIDWebviewUIController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ - (NSProgressIndicator *)prepareLoadingIndicator
239239
windowWidth = window.size.width;
240240
windowHeight = window.size.height;
241241
}
242-
243-
NSProgressIndicator *loadingIndicator = [[NSProgressIndicator alloc] initWithFrame:NSMakeRect(windowWidth / 2 - 16, windowHeight / 2 - 16, MSID_LOADING_INDICATOR_SIZE, MSID_LOADING_INDICATOR_SIZE)];
242+
243+
NSProgressIndicator *loadingIndicator = [[NSProgressIndicator alloc] initWithFrame:NSMakeRect(windowWidth / 2 - MSID_LOADING_INDICATOR_SIZE / 2, windowHeight / 2 - MSID_LOADING_INDICATOR_SIZE / 2, MSID_LOADING_INDICATOR_SIZE, MSID_LOADING_INDICATOR_SIZE)];
244244
[loadingIndicator setStyle:NSProgressIndicatorStyleSpinning];
245245
// Keep the item centered in the window even if it's resized.
246246
[loadingIndicator setAutoresizingMask:NSViewMinXMargin | NSViewMaxXMargin | NSViewMinYMargin | NSViewMaxYMargin];

0 commit comments

Comments
 (0)