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

too long completion in notebook #2937

Closed
Carreau opened this issue Feb 15, 2013 · 3 comments
Closed

too long completion in notebook #2937

Carreau opened this issue Feb 15, 2013 · 3 comments

Comments

@Carreau
Copy link
Member

Carreau commented Feb 15, 2013

Truncate the beginning of long completion in notebook (eg path) when larger than the <select> width and that the beginning is the same.
Bonus : add ellipsis mark.

@njwilson23
Copy link

Is there a method to determine whether a string is longer than the <select> width?

@Carreau
Copy link
Member Author

Carreau commented Feb 23, 2013

select len is computed here

So I guess $(selector).attr('size') give you the length. As for the string, <str>.length should work.

This should allow you to determine the common start of all the string.

@Carreau
Copy link
Member Author

Carreau commented Jul 10, 2013

Fixed by #3189

@Carreau Carreau closed this as completed Jul 10, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants