Clancey / FlyoutNavigation

Other
95 stars 87 forks source link

closeButton doesn't always disappear when closing menu #51

Closed NillDk closed 9 years ago

NillDk commented 10 years ago

If you close the menu by dragging to the left and don't let go before the finger slides off the phones left side, the closeButton will stay 'visible' and thus disable buttons etc. in the right side of the phone. E.g. the top-right button in a navigationbar or disclosure buttons in a UITableView.

The problem seems to be HideMenu() and can be solved by replacing:

public void HideMenu()
{
    if (mainView.Frame.X == 0)
        return;

with:

public void HideMenu()
{
    if (mainView.Frame.X == 0)
    {
        closeButton.RemoveFromSuperview();
        return;
    }
Clancey commented 9 years ago

Is this still happening in the later versions? I cant replicate.