mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-09 08:25:03 +02:00
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:
@ -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++)
|
||||
|
Reference in New Issue
Block a user