From 0a0f4c6fef37c3d807591e2fbc8df968c1f827c2 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 27 May 2010 17:33:32 +0800 Subject: [PATCH] XObject.js --- XObject.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/XObject.js b/XObject.js index cdf8daf73..73800ca02 100644 --- 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); }) -- 2.39.2