little optimized

This commit is contained in:
Tsanie Lily 2020-05-16 23:29:36 +08:00
parent 64223b99af
commit 67009fc9b6
2 changed files with 10 additions and 1 deletions

View File

@ -94,6 +94,7 @@ namespace Pixiview.Illust
public override void OnUnload()
{
InvalidateCollection();
Illusts = null;
lastUpdated = default;
}
@ -298,7 +299,11 @@ namespace Pixiview.Illust
{
if (scrollView.ScrollY > -topOffset)
{
#if __IOS__
await scrollView.ScrollToAsync(0, -topOffset, true);
#else
await scrollView.ScrollToAsync(0, -topOffset, false);
#endif
}
}

View File

@ -31,7 +31,11 @@
<ProgressBar x:Name="progress" IsVisible="{Binding ProgressVisible}"
Progress="0.05"
VerticalOptions="Start"/>
VerticalOptions="Start">
<ProgressBar.Margin>
<OnPlatform x:TypeArguments="Thickness" Android="0, -6, 0, 0"/>
</ProgressBar.Margin>
</ProgressBar>
<u:RoundLabel Text="{Binding PagePositionText}"
BackgroundColor="{DynamicResource MaskColor}" Margin="0, 6, 6, 0"