/// <inheritdoc/>
[EditorBrowsable(EditorBrowsableState.Never)]
+ public override void OnRelayout(Vector2 size, RelayoutContainer container)
+ {
+ base.OnRelayout(size, container);
+ UpdateSizeAndSpacing();
+ }
+
+ /// <inheritdoc/>
+ [EditorBrowsable(EditorBrowsableState.Never)]
protected override void Dispose(DisposeTypes type)
{
if (disposed)
/// <inheritdoc/>
[EditorBrowsable(EditorBrowsableState.Never)]
- protected override void OnUpdate()
- {
- base.OnUpdate();
- LayoutItems();
- }
-
- /// <inheritdoc/>
- [EditorBrowsable(EditorBrowsableState.Never)]
protected override void LayoutItems()
{
- if (styleApplied == false)
- {
- return;
- }
-
if ((Icon == null) && (TextLabel == null))
{
return;
{
Add(TextLabel);
}
+ }
+
+ private void Initialize()
+ {
+ Layout = new AbsoluteLayout();
+
+ topLine = new View(tabButtonStyle?.TopLine);
+ Add(topLine);
+
+ bottomLine = new View(tabButtonStyle?.BottomLine);
+ Add(bottomLine);
+ }
+
+ private void UpdateSizeAndSpacing()
+ {
+ if (styleApplied == false)
+ {
+ return;
+ }
+
+ if ((Icon == null) && (TextLabel == null))
+ {
+ return;
+ }
// FIXME: set Selector<Extents> to padding
var padding = new Extents(40, 40, 24, 24);
padding?.Dispose();
}
-
- private void Initialize()
- {
- Layout = new AbsoluteLayout();
-
- topLine = new View(tabButtonStyle?.TopLine);
- Add(topLine);
-
- bottomLine = new View(tabButtonStyle?.BottomLine);
- Add(bottomLine);
- }
}
}