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

Text Chopped in selectboxit-text #126

Closed
thatryan opened this issue Mar 1, 2013 · 5 comments
Closed

Text Chopped in selectboxit-text #126

thatryan opened this issue Mar 1, 2013 · 5 comments
Assignees
Labels

Comments

@thatryan
Copy link

thatryan commented Mar 1, 2013

The class selectboxit-text is being set to max-width of 70px on all elements, and is cutting of some text. What can cause this?

@gfranko
Copy link
Owner

gfranko commented Mar 1, 2013

In the js, we are setting a dynamic max-width here. Do you have a public url for me to look at?

@thatryan
Copy link
Author

thatryan commented Mar 1, 2013

Sadly not a public link yet, sorry.
I see how it is getting generated yeah, I just could not find why it was always choosing a 70px max-width regardless of size. The select elements have no set size.. all just at 100%.. Could that affect it at all somehow?

@ghost ghost assigned gfranko Mar 4, 2013
@gfranko
Copy link
Owner

gfranko commented Mar 4, 2013

Have you removed the .selectboxit width CSS attribute? SelectBoxIt currently only works automatically when you define an exact width within your CSS. If you remove the width style, then jQuery does not correctly calculate the auto width and the max-width property is incorrect.

@gfranko
Copy link
Owner

gfranko commented Mar 20, 2013

SelectBoxIt v3.3.0 improved how it calculates the width, so this issue should now be fixed!

@gfranko gfranko closed this as completed Mar 20, 2013
@jennift
Copy link

jennift commented Jun 14, 2013

seems like the problem still exist:
when .selectboxit-container { width:100%;} is used, the code

self.dropdownText.css({
"max-width": self.dropdownContainer.width() - (self.downArrowContainer.outerWidth(true) + self.dropdownImage.outerWidth(true))
});

takes the value of 100 - 30 = 70px;
unfortunately it does not accept % values.

methinks.

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

No branches or pull requests

3 participants