mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 09:03:50 +09:00
Fix score panel being incorrectly vertically aligned on screen resize
This commit is contained in:
@ -273,10 +273,10 @@ namespace osu.Game.Screens.Ranking
|
|||||||
detachedPanelContainer.Add(expandedPanel);
|
detachedPanelContainer.Add(expandedPanel);
|
||||||
|
|
||||||
// Move into its original location in the local container first, then to the final location.
|
// Move into its original location in the local container first, then to the final location.
|
||||||
var origLocation = detachedPanelContainer.ToLocalSpace(screenSpacePos);
|
var origLocation = detachedPanelContainer.ToLocalSpace(screenSpacePos).X;
|
||||||
expandedPanel.MoveTo(origLocation)
|
expandedPanel.MoveToX(origLocation)
|
||||||
.Then()
|
.Then()
|
||||||
.MoveTo(new Vector2(StatisticsPanel.SIDE_PADDING, origLocation.Y), 150, Easing.OutQuint);
|
.MoveToX(StatisticsPanel.SIDE_PADDING, 150, Easing.OutQuint);
|
||||||
|
|
||||||
// Hide contracted panels.
|
// Hide contracted panels.
|
||||||
foreach (var contracted in ScorePanelList.GetScorePanels().Where(p => p.State == PanelState.Contracted))
|
foreach (var contracted in ScorePanelList.GetScorePanels().Where(p => p.State == PanelState.Contracted))
|
||||||
|
@ -99,6 +99,8 @@ namespace osu.Game.Screens.Ranking
|
|||||||
{
|
{
|
||||||
var panel = new ScorePanel(score)
|
var panel = new ScorePanel(score)
|
||||||
{
|
{
|
||||||
|
Anchor = Anchor.CentreLeft,
|
||||||
|
Origin = Anchor.CentreLeft,
|
||||||
PostExpandAction = () => PostExpandAction?.Invoke()
|
PostExpandAction = () => PostExpandAction?.Invoke()
|
||||||
}.With(p =>
|
}.With(p =>
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user