diff options
author | kitfox | 2007-05-30 01:33:23 +0200 |
---|---|---|
committer | kitfox | 2007-05-30 01:33:23 +0200 |
commit | 091a1e0179cb264cc2cab6e3b11ea31045c8536d (patch) | |
tree | bd561534d16012c9d398acf32398968e14a19b85 /src/main/java/xml/formControls.js | |
parent | reverting to original source tree (diff) | |
download | svg-salamander-core-091a1e0179cb264cc2cab6e3b11ea31045c8536d.tar.gz svg-salamander-core-091a1e0179cb264cc2cab6e3b11ea31045c8536d.tar.xz svg-salamander-core-091a1e0179cb264cc2cab6e3b11ea31045c8536d.zip |
Restoring SVG Salamander to it's original code base, and updating build scripts.
git-svn-id: https://svn.java.net/svn/svgsalamander~svn/trunk/svg-core@36 7dc7fa77-23fb-e6ad-8e2e-c86bd48ed22b
Diffstat (limited to 'src/main/java/xml/formControls.js')
-rw-r--r-- | src/main/java/xml/formControls.js | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/main/java/xml/formControls.js b/src/main/java/xml/formControls.js new file mode 100644 index 0000000..7c951c2 --- /dev/null +++ b/src/main/java/xml/formControls.js @@ -0,0 +1,27 @@ +
+/**
+ * Layout a form control. Must be called to initialize and whenever the
+ * form's dimensions change.
+ */
+function pack()
+{
+}
+
+function moveLabel(name, x, y, width, height)
+{
+ var clipRect = svgDocument.getElementById(name + "-clip-rect");
+ clipRect.setAttribute("x", x);
+ clipRect.setAttribute("y", y);
+ clipRect.setAttribute("width", width);
+ clipRect.setAttribute("height", height);
+
+ var rect = svgDocument.getElementById(name + "-rect");
+ rect.setAttribute("x", x);
+ rect.setAttribute("y", y);
+ rect.setAttribute("width", width);
+ rect.setAttribute("height", height);
+
+ var text = svgDocument.getElementById(name + "-text");
+ rect.setAttribute("x", x);
+ rect.setAttribute("y", y);
+}
\ No newline at end of file |