Closed (fixed)
Project:
Hierarchical Select
Version:
5.x-3.x-dev
Component:
Code
Priority:
Critical
Category:
Feature request
Assigned:
Reporter:
Created:
4 Oct 2007 at 03:21 UTC
Updated:
19 Oct 2008 at 22:31 UTC
Jump to comment: Most recent file
Comments
Comment #1
wim leersThat's a great idea!
But I'm not sure that appending a ">" is very good. I have to make sure it's aligned to the right, so I have to append a variable number of spaces, then the ">". But what with the "" option? Then you get something like " >", which is not very nice. Count of sub-categories would increase the number of db queries, but not sure yet by how much.
Patches are accepted ;)
Comment #2
wim leersComment #3
wim leersDuplicate of http://drupal.org/node/256010 (which is more active).
Comment #4
wim leersActually this is not a duplicate. That issue is about *node counts*, not *child counts*.
Comment #5
wim leersThis became super easy thanks to http://drupal.org/node/284739.
However, it seems the CSS to get this done is NOT widely supported. I have to do this:
But unfortunately, this is not supported in IE or Safari. Only in Firefox.
Patch attached. The attached image should be put in a "images" directory.
I'd *really* like to get this working at the CSS level instead of appending ">" but it doesn't seem that will be possible…
Comment #6
wim leersI just tried appending ">" but it doesn't work. The spaces that I add for padding (I definitely want the ">" to appear at the right END of each option!) are simply truncated by the browser. I can't use
either, because that'll end up just like that in the option you can see in the dropdown.So … only 2 options now: only support this in Firefox, or show fugly, badly aligned ">" characters. Yay. Stupid browsers. First time in a long time that I've seen that only Firefox supports something useful.
Feedback wanted.
Comment #7
wim leersOh and as a test look at http://www.456bereastreet.com/lab/styling-form-controls-revisited/select..., #el03 is the one with a background image. You'll see it only works in Firefox.
Comment #8
wim leersStatus update.
stephthegeek and Bojhan on IRC couldn't think of a CSS-based solution either.
When I tried using
by adding it afterwards through Firebug, it worked. So either Firebug has magical powers or I simply did something wrong. The latter is more likely :)Comment #9
wim leersIt wasn't me being stupid. It works, but it doesn't work properly, because you're not using a monospace font. So it ends up looking like in the attachment. Postponed until browsers support this decently, or until somebody comes up with a clever hack.
Comment #10
wim leersI've committed this as-is. It only works in Firefox, but the metadata is already there, so it's better to have this working in one browser than none at all.
The relevant WebKit bug is #9599, to which I'm subscribed.
Not even this works in WebKit:
Let alone the more advanced CSS3 alternative:
After hanging around in #webkit, I even managed to get a reply of David Hyatt, one of the main WebKit developers:
So … don't expect this to be supported in WebKit *at all* any time soon, and well … don't get expect IE to support this ever!
Comment #11
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.