Skip to content

Incorrect placement into TagsView #5

Description

@rudja

Hello,

You have done a great job with this tagView package !
I am trying to use it but I am encountering an issue that I can solve.

The list is randomly incorrectly displayed into my view.
Sometimes the list is correctly displayed when I add a tag and sometimes not...
The RowQuantity property is correct.

Here I joined my code and 3 photos to explain my case :
`this._tagsView = new TagListView(true)
{
MarginX = 8f,
MarginY = 8f,
PaddingY = 8f,
PaddingX = 8f,
TextFont = FontHelper.GetFont(FontsEnum.Medium, 14f),
TagTextColor = ColorHelper.GreyishBrown,
Alignment = TagsAlignment.Left,
Frame = new CGRect(24, 16, _tagView.Frame.Width, _tagView.Frame.Height),
TagButtonSize = 16f,
TagButtonColor = ColorHelper.Black,
TagBackgroundColor = ColorHelper.paleGrey
};

        this._tagsView.TagButtonTapped += (sender, e) =>
        {
            this._tagsView.RemoveTag(e);
        };

        //_tagView is the view where I placed my TagListView
        this._tagView.AddSubview(_tagsView);

        this._tagView.AddConstraints(
            this._tagsView.Below(this._limitForTagView, 16f)
        );

        _tagsView.AddTags(list);`

Tag not added :

itemnotselected

Tag correctly added :

itemselectedandcorrectlyplaced

Tag incorrectly added :

itemselectedbuttoolow

Any idea on how I can fix this issue please?

PS : Sorry the first part of my code can not be added as I wished.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions