Change double-click to auto-size column based on current contents, to only work for fixed width columns. Relative (flex) width columns now just show a message as it was difficult to get them to properly size without weird side effects, especially with 2 relative width columns displayed.

This commit is contained in:
nathangray
2016-10-18 09:23:13 -06:00
parent c47d8a26c3
commit f71131d28d
3 changed files with 7 additions and 0 deletions

View File

@ -155,6 +155,11 @@
// Bind double click for auto-size
_elem.dblclick(function(e) {
// Just show message for relative width columns
if(_context && _context.relativeWidth)
{
return egw.message(egw.lang('You tried to automatically size a flex column, which always takes the rest of the space','info'));
}
// Find column class - it's usually the first one
var col_class = '';
for(var i = 0; i < this.classList.length; i++)