[interchange-cvs] interchange - heins modified
lib/Vend/Table/Editor.pm
interchange-cvs at icdevgroup.org
interchange-cvs at icdevgroup.org
Mon Apr 25 01:43:56 EDT 2005
User: heins
Date: 2005-04-25 05:43:55 GMT
Modified: lib/Vend/Table Editor.pm
Log:
* A bit more intelligence in the width-guessing -- when all cells were
the same size it would get confused.
Revision Changes Path
1.74 +4 -4 interchange/lib/Vend/Table/Editor.pm
rev 1.74, prev_rev 1.73
Index: Editor.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Table/Editor.pm,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -r1.73 -r1.74
--- Editor.pm 25 Apr 2005 05:29:38 -0000 1.73
+++ Editor.pm 25 Apr 2005 05:43:55 -0000 1.74
@@ -1,6 +1,6 @@
# Vend::Table::Editor - Swiss-army-knife table editor for Interchange
#
-# $Id: Editor.pm,v 1.73 2005/04/25 05:29:38 mheins Exp $
+# $Id: Editor.pm,v 1.74 2005/04/25 05:43:55 mheins Exp $
#
# Copyright (C) 2002-2003 Interchange Development Group
# Copyright (C) 2002 Mike Heins <mike at perusion.net>
@@ -26,7 +26,7 @@
package Vend::Table::Editor;
use vars qw($VERSION);
-$VERSION = substr(q$Revision: 1.73 $, 10);
+$VERSION = substr(q$Revision: 1.74 $, 10);
use Vend::Util;
use Vend::Interpolate;
@@ -4339,12 +4339,12 @@
continue;
var wid = mytags[i].offsetWidth;
var span = mytags[i].getAttribute('colspan');
- if(span < 2 && mytags[i].getAttribute('class') == type && wid > max) {
+ if(span < 2 && mytags[i].getAttribute('class') == type && wid >= max) {
nextmax = max;
max = wid;
}
}
- if((max / 2) > nextmax)
+ if(max > 500 && (max / 2) > nextmax)
max = nextmax;
for(var i = 0; i < mytags.length; i++) {
if(mytags[i].getAttribute('class') != type)
More information about the interchange-cvs
mailing list