mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 08:52:55 +08:00
Fix incorrect editor screen padding
This commit is contained in:
parent
063377f47c
commit
4ad7d900c1
@ -328,7 +328,7 @@ namespace osu.Game.Screens.Edit
|
||||
{
|
||||
Name = "Screen container",
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Padding = new MarginPadding { Top = 40, Bottom = 40 },
|
||||
Padding = new MarginPadding { Top = 40, Bottom = 50 },
|
||||
Child = screenContainer = new Container<EditorScreen>
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
|
@ -104,10 +104,11 @@ namespace osu.Game.Screens.Edit.Timing
|
||||
// child items valid coordinates from the start, so ballpark something similar
|
||||
// using estimated row height.
|
||||
var row = Items.FlowingChildren.SingleOrDefault(item => item.Row.Equals(val.NewValue));
|
||||
|
||||
if (row == null)
|
||||
return;
|
||||
|
||||
float minPos = Items.GetLayoutPosition(row) * row_height;
|
||||
float minPos = row.Y;
|
||||
float maxPos = minPos + row_height;
|
||||
|
||||
if (minPos < Scroll.Current)
|
||||
|
Loading…
Reference in New Issue
Block a user