1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 14:25:05 +08:00

Fix incorrect editor screen padding

This commit is contained in:
Dean Herbert 2024-07-16 18:20:33 +09:00
parent 063377f47c
commit 4ad7d900c1
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View File

@ -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,

View File

@ -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)