This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Mozilla XML > October 2005 > Re: Is is possible to set the width of the textbox in the upload





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Is is possible to set the width of the textbox in the upload
Adam FLinton

2005-10-14, 6:46 pm

Allan Beaufour wrote:
> On Thursday October 13 2005 17:01, Adam FLinton wrote:
>
>
>
> 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? You know how you can set the size
of an Xform textarea with a css containing

textarea
{
width: 100%;
}

So what is the upload component actually emitted as (in XHTML)?

Something like:

<form name="form1"> <input name="XFormcontrolname"
type="file" /><input onclick="whatFile()"
value="Open File" type="button" /></form>


?

Adam
Adam FLinton

2005-10-14, 6:46 pm

Allan Beaufour wrote:

> Friday 14 October 2005 13:13 skrev Adam FLinton:
>
>
>
> There are some "issues" right now, as it is done in XTF and not XBL. But you
> can try :)
>
>
>
>
> It's hiding here:
> http://lxr.mozilla.org/seamonkey/so...Element.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
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews