Merge pull request #10168 from davidkelly/dk/4036

username stays around now when tabbing to connections
This commit is contained in:
Howard Stearns 2017-04-10 11:05:59 -07:00 committed by GitHub
commit d59b93e713

View file

@ -302,7 +302,7 @@ Item {
height: usernameTextPixelSize + 4
// Anchors
anchors.top: isMyCard ? myDisplayName.bottom : pal.activeTab == "nearbyTab" ? displayNameContainer.bottom : undefined //(parent.height - displayNameTextPixelSize/2));
anchors.verticalCenter: pal.activeTab == "connectionsTab" ? avatarImage.verticalCenter : undefined
anchors.verticalCenter: pal.activeTab == "connectionsTab" && !isMyCard ? avatarImage.verticalCenter : undefined
anchors.left: avatarImage.right;
anchors.leftMargin: avatarImage.visible ? 5 : 0;
anchors.rightMargin: 5;