[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qsos-commits] qsos/apps/xuleditor/chrome/content editor.js ed...
From: |
Raphaël Semeteys |
Subject: |
[Qsos-commits] qsos/apps/xuleditor/chrome/content editor.js ed... |
Date: |
Sat, 27 May 2006 13:47:55 +0000 |
CVSROOT: /sources/qsos
Module name: qsos
Branch:
Changes by: Raphaël Semeteys <address@hidden> 06/05/27 13:47:55
Modified files:
apps/xuleditor/chrome/content: editor.js editor.xul
Log message:
Elements' sizing
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qsos/qsos/apps/xuleditor/chrome/content/editor.js.diff?tr1=1.7&tr2=1.8&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/qsos/qsos/apps/xuleditor/chrome/content/editor.xul.diff?tr1=1.6&tr2=1.7&r1=text&r2=text
Patches:
Index: qsos/apps/xuleditor/chrome/content/editor.js
diff -u qsos/apps/xuleditor/chrome/content/editor.js:1.7
qsos/apps/xuleditor/chrome/content/editor.js:1.8
--- qsos/apps/xuleditor/chrome/content/editor.js:1.7 Mon May 22 06:22:12 2006
+++ qsos/apps/xuleditor/chrome/content/editor.js Sat May 27 13:47:55 2006
@@ -106,7 +106,7 @@
//Draw top-level SVG chart
drawChart();
- window.sizeToContent();
+ //window.sizeToContent();
}
}
@@ -226,7 +226,8 @@
var tree = document.getElementById("mytree");
var treechildren = document.getElementById("myTreechildren");
tree.removeChild(treechildren);
- clearChart()
+ clearChart();
+ clearLabels();
}
//Checks Document's state before closing it
@@ -467,8 +468,10 @@
function drawChart(name) {
clearChart();
var myChart = document.getElementById("chart");
- var width = myChart.parentNode.width.baseVal.value / 2;
- var height = myChart.parentNode.height.baseVal.value / 2;
+ //var width = myChart.parentNode.width.animVal.value / 2;
+ //var height = myChart.parentNode.height.animVal.value / 2;
+ var width = 300;
+ var height = 300;
myChart.setAttribute("transform", "translate("+width+","+height+")");
//Collect charting data
Index: qsos/apps/xuleditor/chrome/content/editor.xul
diff -u qsos/apps/xuleditor/chrome/content/editor.xul:1.6
qsos/apps/xuleditor/chrome/content/editor.xul:1.7
--- qsos/apps/xuleditor/chrome/content/editor.xul:1.6 Mon May 22 00:25:46 2006
+++ qsos/apps/xuleditor/chrome/content/editor.xul Sat May 27 13:47:55 2006
@@ -50,7 +50,7 @@
</treecols>
</tree>
</vbox>
-
+
<tabbox flex = "1">
<tabs>
<tab id = "t-software" label = "Software"/>
@@ -94,7 +94,7 @@
<tabpanel>
<vbox id="chart-box">
<hbox id="chart-label" />
- <svg xmlns="http://www.w3.org/2000/svg"
version="1.1" width="100%" height="100%">
+ <svg xmlns="http://www.w3.org/2000/svg"
version="1.1">
<g id="chart" />
</svg>
</vbox>