1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-16 08:13:20 +00:00

formatting touchups

This commit is contained in:
Kyle Spearrin
2020-01-29 08:46:21 -05:00
parent 9a66b9003f
commit c3649a9c80
2 changed files with 10 additions and 8 deletions

View File

@@ -370,7 +370,7 @@ namespace Bit.Droid.Accessibility
var anchorViewRectTop = anchorViewRect.Top;
anchorViewRect.Dispose();
int calculatedTop = rootRectHeight - anchorViewRectTop;
var calculatedTop = rootRectHeight - anchorViewRectTop;
if((int)Build.VERSION.SdkInt >= 24)
{
calculatedTop -= GetNavigationBarHeight();
@@ -385,7 +385,8 @@ namespace Bit.Droid.Accessibility
Point point = null;
if(anchorNode != null)
{
anchorNode.Refresh(); // update node's info since this is still a reference from an older event
// Update node's info since this is still a reference from an older event
anchorNode.Refresh();
if(!anchorNode.VisibleToUser)
{
return new Point(-1, -1);
@@ -406,7 +407,7 @@ namespace Bit.Droid.Accessibility
{
return new Point(-1, -1);
}
Rect inputWindowRect = GetInputMethodWindowRect(windows);
var inputWindowRect = GetInputMethodWindowRect(windows);
if(inputWindowRect != null)
{
limitLowY += inputWindowRect.Height();
@@ -419,7 +420,6 @@ namespace Bit.Droid.Accessibility
}
point = GetOverlayAnchorPosition(root, anchorNode, rootNodeHeight);
if(point.Y < limitLowY || point.Y > limitHighY)
{
point.X = -1;