XTF/XForms elements layout strange behaviour
Robert Marcano <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Message-ID | <[email protected]> |
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 See screenshot ________________________________________ Robert Marcano web: http://www.marcanoonline.com/ blog: http://www.marcanoonline.com/plog/ ________________________________________
test.xml
(text/xml, 1.1 KB)
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="../xhtml2.css" ?>
<!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>
<br/>
<xforms:submit>
<xforms:label>Submit</xforms:label>
</xforms:submit>
<xforms:submit>
<xforms:label>Submit</xforms:label>
</xforms:submit>
</body>
</html>
Screenshot-Mozilla-bin.png
(image/png, 31.2 KB) - not displayed