Skip to content

Commit dbddde3

Browse files
committed
fix: add compilation flags for windows size updates
1 parent 8e7d862 commit dbddde3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Packages/Passport/Runtime/Scripts/Public/PassportUI.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,11 +630,13 @@ private void UpdateWebViewResolution()
630630
{
631631
if (webView != null && isInitialized && webViewWidth > 0 && webViewHeight > 0)
632632
{
633+
#if !IMMUTABLE_CUSTOM_BROWSER && (UNITY_STANDALONE_WIN || (UNITY_EDITOR && UNITY_EDITOR_WIN))
633634
// For Windows UWB, update the internal resolution
634635
if (webView is WindowsPassportWebView windowsWebView)
635636
{
636637
windowsWebView.UpdateUWBResolution(webViewWidth, webViewHeight);
637638
}
639+
#endif
638640
// For other platforms (Vuplex), the RectTransform size is sufficient
639641
// as they don't have separate internal resolution properties
640642
}
@@ -645,11 +647,13 @@ private void UpdateWebViewResolution()
645647
/// </summary>
646648
private void Update()
647649
{
650+
#if !IMMUTABLE_CUSTOM_BROWSER && (UNITY_STANDALONE_WIN || (UNITY_EDITOR && UNITY_EDITOR_WIN))
648651
// Check for pending resolution updates on Windows WebView
649652
if (webView is WindowsPassportWebView windowsWebView)
650653
{
651654
windowsWebView.UpdatePendingResolution();
652655
}
656+
#endif
653657
}
654658

655659
private void SetupLoginButton()

0 commit comments

Comments
 (0)