Re: XTF/XForms elements layout strange behaviour
Robert Marcano <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Message-ID | <[email protected]> |
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
test.xml
(text/xml, 1.1 KB)
<?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>