Re: XTF/XForms elements layout strange behaviour

Aaron Reed <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xml
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Robert Marcano wrote:
> On Mon, 2004-09-13 at 13:37, Aaron Reed wrote:
> 
>>Robert Marcano wrote:
>>
>>>On Mon, 2004-09-13 at 03:45, R_O_O_K wrote:
>>>
>>>
>>>>Dnia 2004-09-12 05:34, Użytkownik Robert Marcano napisał:
>>>>
>>>>
>>>>
>>>>>I have managed to learn a little about XTF and the XForms input element
>>>>>initial implementation, based on that I have implemented a simple
>>>>>version of the xforms:submit. Creating a test file (attached) I noticed
>>>>>that the layout of the elements is strange, the second input element and
>>>>>the second submit element always starts at the right side of the
>>>>>document window, and if i resize the window to a smaller size, it moves
>>>>
> 
> ---- snip ----
> 
> 
>>Hey Robert,
>>
>>I didn't see a second input element in your code.  I assume that it is 
>>just after the first one, so that you have two input elements then two 
>>submit elements?true
> 
> 
> Correct
> 
> 
>>--Aaron
> 
> 
> Maybe I submitted the wrong file, i do not find it in my sent history
> folder :-(
> 
> The file has the following body, you can see the input and submit
> element duplicated
> 
>  <body>
>     <xforms:input model="model" ref="/data/a">
>       <xforms:label>Edit value of /data/a</xforms:label>
>     </xforms:input>
>     <xforms:input model="model" ref="/data/a">
>       <xforms:label>Edit value of /data/a</xforms:label>
>     </xforms:input>
>     <br/>
>     <xforms:submit>
>        <xforms:label>Submit</xforms:label>
>     </xforms:submit>
>     <xforms:submit>
>        <xforms:label>Submit</xforms:label>
>     </xforms:submit>
>   </body>
> 
> 
> ________________________________________
> Robert Marcano
> 
> 
> 
> ------------------------------------------------------------------------
> 
> <?xml version="1.0"?>
> <!DOCTYPE html 
>      PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
>     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:xforms="http://www.w3.org/2002/xforms"
>       xmlns:ev="http://www.w3.org/2001/xml-events"
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>       xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>       xml:lang="en">
>   <head>
>     <title>Simple Tests</title>
>     <xforms:model id="model">
>        <xforms:instance xmlns="">
>          <data>
>             <a xsi:type="xsd:integer">1</a>
>             <b xsi:type="xsd:string">2</b>
>         </data>
>       </xforms:instance>
>     </xforms:model>
>   </head>
>   <body>
>     <xforms:input model="model" ref="/data/a">
>       <xforms:label>Edit value of /data/a</xforms:label>
>     </xforms:input>
>     <xforms:input model="model" ref="/data/a">
>       <xforms:label>Edit value of /data/a</xforms:label>
>     </xforms:input>
>     <br/>
>     <xforms:submit>
>        <xforms:label>Submit</xforms:label>
>     </xforms:submit>
>     <xforms:submit>
>        <xforms:label>Submit</xforms:label>
>     </xforms:submit>
>   </body>
> </html>

Brian has already run into this.  Has to do with styling.  XTFElements 
are styled to be 'block' by default.  He's looking into how this should 
be addressed (as new XTF elements that can have the different visual 
layouts, or some kind of namespace-based styling applied per control 
type).  He has put some stuff together and when he tests it, his input 
elements line up right next to each other.  So I'd say don't worry about 
it now.

Thanks for the heads up,
--Aaron
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.