Re: Is is possible to set the width of the textbox in the upload component?
Adam FLinton <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
Allan Beaufour wrote:
> Friday 14 October 2005 13:13 skrev Adam FLinton:
>
>>Allan Beaufour wrote:
>>
>>>On Thursday October 13 2005 17:01, Adam FLinton wrote:
>>>
>>>>Is is possible to set the width of the textbox in the upload component?
>>>
>>>Hmm, not really. In a perfect world you should possibly be able to target
>>>xforms|upload::value, but we have no support for pseudoelements yet :(
>>
>>OK then...is it possible with via CSS?
>
>
> There are some "issues" right now, as it is done in XTF and not XBL. But you
> can try :)
>
>
>>Something like:
>>
>><form name="form1"> <input name="XFormcontrolname"
>> type="file" /><input onclick="whatFile()"
>> value="Open File" type="button" /></form>
>
>
> It's hiding here:
> http://lxr.mozilla.org/seamonkey/source/extensions/xforms/nsXFormsUploadElement.cpp#115
> So it must be:
> <label>
> <span/>
> <input type="file"/>
> </label>
>
> But we are currently changing upload:
> https://bugzilla.mozilla.org/show_bug.cgi?id=275453
> So in the not to distant future :), it will be in XBL which should fix some of
> the layout issues and also make it easier to see what we actually create.
>
Nah it doesn't work. The size of the entire control grows (invisibly).
e.g.
input
{
width: 1000px;
}
or as 100% or whatever just adds invisible space but the size of the
text box itself doesn't change.
Ah well.
Adam