Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect placement into TagsView #5

Open
rudja opened this issue Nov 18, 2018 · 1 comment
Open

Incorrect placement into TagsView #5

rudja opened this issue Nov 18, 2018 · 1 comment

Comments

@rudja
Copy link

rudja commented Nov 18, 2018

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.

@nmilcoff
Copy link
Owner

@rudja have you been able to solve this? If not, can you please try using AutoLayout and constraints instead of Frames? Apologies for the delay, I'm back to coding now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants