mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 02:43:19 +08:00
Child control fixes.
This commit is contained in:
parent
f03530cdd2
commit
3ec5d774df
@ -103,6 +103,8 @@ namespace osu.Game.Graphics.Containers
|
|||||||
{
|
{
|
||||||
base.Add(drawable);
|
base.Add(drawable);
|
||||||
lastKnownScroll = float.NaN;
|
lastKnownScroll = float.NaN;
|
||||||
|
headerHeight = float.NaN;
|
||||||
|
footerHeight = float.NaN;
|
||||||
}
|
}
|
||||||
|
|
||||||
private float headerHeight, footerHeight;
|
private float headerHeight, footerHeight;
|
||||||
|
@ -22,7 +22,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
|
|
||||||
protected override TabItem<T> CreateTabItem(T value) => new OsuTabItem(value);
|
protected override TabItem<T> CreateTabItem(T value) => new OsuTabItem(value);
|
||||||
|
|
||||||
protected override bool InternalContains(Vector2 screenSpacePos) => base.InternalContains(screenSpacePos) || Dropdown.Contains(screenSpacePos);
|
protected override bool InternalContains(Vector2 screenSpacePos) => base.InternalContains(screenSpacePos) || Dropdown?.Contains(screenSpacePos) == true;
|
||||||
|
|
||||||
private static bool isEnumType => typeof(T).IsEnum;
|
private static bool isEnumType => typeof(T).IsEnum;
|
||||||
|
|
||||||
|
@ -135,6 +135,8 @@ namespace osu.Game.Overlays
|
|||||||
|
|
||||||
protected override TabItem<ProfileSection> CreateTabItem(ProfileSection value) => new ProfileTabItem(value);
|
protected override TabItem<ProfileSection> CreateTabItem(ProfileSection value) => new ProfileTabItem(value);
|
||||||
|
|
||||||
|
protected override Dropdown<ProfileSection> CreateDropdown() => null;
|
||||||
|
|
||||||
private class ProfileTabItem : PageTabItem
|
private class ProfileTabItem : PageTabItem
|
||||||
{
|
{
|
||||||
public ProfileTabItem(ProfileSection value) : base(value)
|
public ProfileTabItem(ProfileSection value) : base(value)
|
||||||
|
Loading…
Reference in New Issue
Block a user