projects
/
app.Builder.js
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6224069
)
XObject.js
author
Alan Knowles
<alan@akbkhome.com>
Thu, 27 May 2010 09:33:32 +0000
(17:33 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 27 May 2010 09:33:32 +0000
(17:33 +0800)
XObject.js
patch
|
blob
|
history
diff --git
a/XObject.js
b/XObject.js
index
cdf8daf
..
73800ca
100644
(file)
--- a/
XObject.js
+++ b/
XObject.js
@@
-214,7
+214,17
@@
XObject.prototype = {
var _this=this;
- items.forEach(function(i) {
+ items.forEach(function(i,n) {
+
+ if (type == 'GtkTable' && i.pack == 'add') {
+ var c = n % this.config.n_columns;
+ var r = Math.floor(n/this.config.n_columns);
+ i.pack = [ 'attach', c, c+1, r, r+1,
+ i.config.x_options || 5, i.config.x_padding || 0,
+ i.config.y_options || 5, i.config.y_padding || 0
+ ]
+ }
+
_this.addItem(i);
})