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

Update for changing independently the "width", "height" parameters and added the possibility for changing also the "margin". #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zequeira
Copy link

Hi, I created an issue because I tried to just use the "width" parameter to change the component size and it didn't work, then I tried also with the "height" and it's work.
I search a bit on your code and I think I found the part related with this, I just adapted to support independently the "width" or the "height" and added also the "margin".

I tested these changes and work correctly, but I don't know if there is some other code related with this that should be changed, at least I didn't noted from this first analysis.

…nd added the posibility for changing also the "margin".
'height': options.height
});
}
if (options.margin) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the optional width & height, but I intentionally added only the ability to set those width & height programmatically because the tags inside the input are affected by those dimensions. The plugin itself won't benefit from being able to programmatically adjust margin, but margin can just as easily be set with CSS: .tag-this { margin: 20px; }

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

Successfully merging this pull request may close these issues.

2 participants