Skip to content

Commit

Permalink
Remove IElementSizing on top level, for better performance according to
Browse files Browse the repository at this point in the history
  • Loading branch information
csteeg committed Sep 23, 2013
1 parent 604191f commit 0d61216
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions CrossUI/CrossUI.Touch/Dialog/Elements/Element.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace CrossUI.Touch.Dialog.Elements
/// <summary>
/// Base class for all elements in MonoTouch.Dialog
/// </summary>
public class Element : IElement, IDisposable, IElementSizing
public class Element : IElement, IDisposable
{
private static int _currentElementID = 1;

Expand Down Expand Up @@ -154,11 +154,6 @@ public Element(string caption, NSAction tapped)
Dispose(false);
}

public virtual float GetHeight(UITableView tableView, NSIndexPath indexPath)
{
return Visible ? tableView.RowHeight : 0;
}

public void Dispose()
{
Dispose(true);
Expand Down

0 comments on commit 0d61216

Please sign in to comment.