Skip to content
This repository has been archived by the owner on May 9, 2018. It is now read-only.

input lose inline styles on long tags #86

Open
santik opened this issue Jun 17, 2013 · 1 comment
Open

input lose inline styles on long tags #86

santik opened this issue Jun 17, 2013 · 1 comment

Comments

@santik
Copy link
Contributor

santik commented Jun 17, 2013

If input '.tagit-new .tagit-input' has inline styles in will lose it after entering new long tag.
The problem is in
if (isValidWidthChange) {
//input.width(newWidth);
input.css('cssText', "width: " + newWidth + "px !important");
}

@santik
Copy link
Contributor Author

santik commented Jun 17, 2013

can be fixed like this:
if (isValidWidthChange) {
//input.width(newWidth);
//input.css('cssText', "width: " + newWidth + "px !important");
var styles = input.attr('style');
input.css('cssText', "width: " + newWidth + "px !important;"+styles);
}

This was referenced Jun 17, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant