From 6fe5e89ecc5961cd8d3a943d9e7238dcd4b4d949 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 18 Dec 2017 09:23:46 -0500 Subject: [PATCH] position indicator when not UWP for spinner --- src/App/Pages/Vault/VaultAutofillListCiphersPage.cs | 4 +++- src/App/Pages/Vault/VaultListCiphersPage.cs | 6 ++++++ src/App/Pages/Vault/VaultListGroupingsPage.cs | 6 ++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/App/Pages/Vault/VaultAutofillListCiphersPage.cs b/src/App/Pages/Vault/VaultAutofillListCiphersPage.cs index 4ae91cd59..54e343d6f 100644 --- a/src/App/Pages/Vault/VaultAutofillListCiphersPage.cs +++ b/src/App/Pages/Vault/VaultAutofillListCiphersPage.cs @@ -115,7 +115,9 @@ namespace Bit.App.Pages LoadingIndicator = new ActivityIndicator { - IsRunning = true + IsRunning = true, + VerticalOptions = LayoutOptions.CenterAndExpand, + HorizontalOptions = LayoutOptions.Center }; Content = LoadingIndicator; diff --git a/src/App/Pages/Vault/VaultListCiphersPage.cs b/src/App/Pages/Vault/VaultListCiphersPage.cs index 250fd242d..4c79a500a 100644 --- a/src/App/Pages/Vault/VaultListCiphersPage.cs +++ b/src/App/Pages/Vault/VaultListCiphersPage.cs @@ -167,6 +167,12 @@ namespace Bit.App.Pages IsRunning = true }; + if(Device.RuntimePlatform != Device.UWP) + { + LoadingIndicator.VerticalOptions = LayoutOptions.CenterAndExpand; + LoadingIndicator.HorizontalOptions = LayoutOptions.Center; + } + Content = LoadingIndicator; } diff --git a/src/App/Pages/Vault/VaultListGroupingsPage.cs b/src/App/Pages/Vault/VaultListGroupingsPage.cs index 41d46ac99..35b083d58 100644 --- a/src/App/Pages/Vault/VaultListGroupingsPage.cs +++ b/src/App/Pages/Vault/VaultListGroupingsPage.cs @@ -109,6 +109,12 @@ namespace Bit.App.Pages IsRunning = true }; + if(Device.RuntimePlatform != Device.UWP) + { + LoadingIndicator.VerticalOptions = LayoutOptions.CenterAndExpand; + LoadingIndicator.HorizontalOptions = LayoutOptions.Center; + } + Content = LoadingIndicator; Title = AppResources.MyVault; }