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