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

Intuitive input width needed #28

Closed
crowdmedia opened this issue Mar 10, 2010 · 3 comments
Closed

Intuitive input width needed #28

crowdmedia opened this issue Mar 10, 2010 · 3 comments

Comments

@crowdmedia
Copy link

Seems like the better option for unifying form design but its not as flexible as it might be.

Seems its difficult to size form items such as the select unless the size is uniform across a site. I would like to specify the width of different selects placed for different use throughout the site but to do this would require a few lines of css for each select which is a bit cumbersome. Would be ideal if the script could grab the width attribute, possibly other attributes given to the original select or indeed to the selector class and apply the necessary changes to "div.selector select" and "div.selector span" for example.

Nice job though, keeping the original functionality of the dropdown of a select is ideal.

@Zigmondo
Copy link

Great Job, love it!

I am also having similar issues where i would like to use different width selects on the same page. The idea on the last comment to try and use the width attribute of the current field would be a massive improvement.

@Zigmondo
Copy link

I have managed to amend the script to use the width attribute and it seems to work well. I simply amended the doSelect function as follows:

function doSelect(elem){
var width = elem.width();
var divTag = $('

'),
spanTag = $('');

A little crude but it seems to have done the trick for me. I can now specify a width on each select.

@crowdmedia
Copy link
Author

Excellent, I will let you know if i come across any other issues as i implement it across my site. Exactly the method i thought would work best.

This issue was closed.
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

2 participants