1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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);
}
|