[interchange-cvs] interchange - heins modified
lib/Vend/Table/Editor.pm
interchange-cvs at icdevgroup.org
interchange-cvs at icdevgroup.org
Fri Dec 19 14:57:15 EST 2003
User: heins
Date: 2003-12-19 19:57:14 GMT
Modified: lib/Vend/Table Editor.pm
Log:
* Apply Paul's patch to number of rows thing, which gets multiple row
tabs working on the tabbed display if not in ui_style mode.
Revision Changes Path
1.47 +3 -3 interchange/lib/Vend/Table/Editor.pm
rev 1.47, prev_rev 1.46
Index: Editor.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Table/Editor.pm,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -r1.46 -r1.47
--- Editor.pm 12 Dec 2003 05:30:35 -0000 1.46
+++ Editor.pm 19 Dec 2003 19:57:14 -0000 1.47
@@ -1,6 +1,6 @@
# Vend::Table::Editor - Swiss-army-knife table editor for Interchange
#
-# $Id: Editor.pm,v 1.46 2003/12/12 05:30:35 mheins Exp $
+# $Id: Editor.pm,v 1.47 2003/12/19 19:57:14 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.46 $, 10);
+$VERSION = substr(q$Revision: 1.47 $, 10);
use Vend::Util;
use Vend::Interpolate;
@@ -591,7 +591,7 @@
my $vpf = $id . '_';
my $num_panels = scalar(@$cont);
my $tabs_per_row = int( $opt->{panel_width} / $opt->{tab_width}) || 1;
- my $num_rows = POSIX::ceil( $num_panels / $opt->{tab_width});
+ my $num_rows = POSIX::ceil( $num_panels / $tabs_per_row);
my $width = $opt->{panel_width};
my $height = $opt->{tab_height} * $num_rows + $opt->{panel_height};
my $panel_y;
More information about the interchange-cvs
mailing list