Author: nathangray
New Revision: 55996
URL: http://svn.stylite.de/viewvc/egroupware?rev=55996&view=rev
Log:
If the total width of the columns is greater than what is available, distribute the shortage across fixed width columns
Modified:
trunk/egroupware/api/js/etemplate/et2_dataview_model_columns.js
— trunk/egroupware/api/js/etemplate/et2_dataview_model_columns.js (original)
+++ trunk/egroupware/api/js/etemplate/et2_dataview_model_columns.js Tue May 3 22:55:39 2016
@@ -326,6 +326,7 @@
// Calculate how many space is - relatively - not occupied with columns with
// relative or fixed width
var totalRelative = 0;
@@ -351,6 +352,7 @@
else if (col.fixedWidth)
{
this.totalFixed += col.fixedWidth;
@@ -405,7 +407,8 @@
{
if(this.columns[columnIndex].visibility === ET2_COL_VISIBILITY_INVISIBLE ||
this.columns[columnIndex].visibility === ET2_COL_VISIBILITY_DISABLED ||
@@ -423,12 +426,14 @@
}
if(!column)
{
-
col.fixedWidth -= Math.round(this.columnWidths[i] / tw * remaining_width);
-
this.columnWidths[i] = Math.max(0, Math.min(col.fixedWidth,tw));
-
if(!col.fixedWidth) continue;
-
var diff = Math.round(remaining_width / fixedCount);
-
var new_width = this.columnWidths[i] - diff;
-
this.columnWidths[i] = Math.max(0, Math.min(new_width,tw));
}
}
else
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs