Permalink
Browse files

tbl.js clear fix (for IE)

  • Loading branch information...
1 parent 07cd7de commit 293b6e59e12c3a185eebefc8f03c20ac1f664312 @winton committed Jan 7, 2009
Showing with 4 additions and 1 deletion.
  1. +4 −1 resources/widgets/javascripts/tbl.js
@@ -32,6 +32,10 @@ var Tbl = function() {
if (col == 0) {
margin = widths.sum();
margin -= widths[col];
+ if (x != 0)
+ container.adopt(new Element('div', {
+ styles: { clear: 'both' }
+ }));
}
var first_last = (col == 0 ? ' first' : col == widths.length -1 ? ' last' : '');
var div = new Element('div', {
@@ -52,7 +56,6 @@ var Tbl = function() {
if (col != 0)
margin -= widths[col];
});
-
container.adopt(new Element('div', {
styles: { clear: 'both' }
}));

0 comments on commit 293b6e5

Please sign in to comment.