From f71131d28d7ddb0cf3f4351fcb845d7a60150edc Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 18 Oct 2016 09:23:13 -0600 Subject: [PATCH] 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. --- api/js/etemplate/et2_dataview_view_resizeable.js | 5 +++++ api/lang/egw_de.lang | 1 + api/lang/egw_en.lang | 1 + 3 files changed, 7 insertions(+) diff --git a/api/js/etemplate/et2_dataview_view_resizeable.js b/api/js/etemplate/et2_dataview_view_resizeable.js index 456fbef60d..3a7e28870b 100644 --- a/api/js/etemplate/et2_dataview_view_resizeable.js +++ b/api/js/etemplate/et2_dataview_view_resizeable.js @@ -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++) diff --git a/api/lang/egw_de.lang b/api/lang/egw_de.lang index ce10e20574..acf9a158fe 100644 --- a/api/lang/egw_de.lang +++ b/api/lang/egw_de.lang @@ -1445,6 +1445,7 @@ you need to install mailvelope plugin available for chrome and firefox from www. you need to select a file first! common de Sie müssen zuerst eine Datei auswählen! you need to select some entries first! common de Sie müssen zuerst einige Datensätze auswählen! you need to set enable logging to "%1" to create/update a log. groupdav de Sie müssen logging einschalten auf "%1" setzen damit ein Log angelegt/aktualisiert wird. +you tried to automatically size a flex column, which always takes the rest of the space common de Sie versuchen die Breite einer Flexiblen Spalte zu ändern, diese nimmt immer den Rest des verfügbaren Platzes ein. you will not be able to send or receive encrypted mails before completing that step! common de Sie werden KEINE verschlüsselten Mail sender oder empfangen können, bevor Sie nicht diesen Schritt beendet haben! you've tried to open the egroupware application: %1, but you have no permission to access this application. common de Sie haben versucht auf die EGroupware Anwendung %1 zuzugreifen, auf die Sie keine Rechte haben. your code is incorrect !!! common de Ihr Code ist nicht richtig!!! diff --git a/api/lang/egw_en.lang b/api/lang/egw_en.lang index d5c78ee139..9a863b0e88 100644 --- a/api/lang/egw_en.lang +++ b/api/lang/egw_en.lang @@ -1447,6 +1447,7 @@ you need to install mailvelope plugin available for chrome and firefox from www. you need to select a file first! common en Select a file first! you need to select some entries first! common en You need to select some entries first! you need to set enable logging to "%1" to create/update a log. groupdav en You need to set enable logging to "%1" to create/update a log. +you tried to automatically size a flex column, which always takes the rest of the space common en You tried to automatically size a flex column, which always takes the rest of the space. you will not be able to send or receive encrypted mails before completing that step! common en You will NOT be able to send or receive encrypted mails before completing that step! you've tried to open the egroupware application: %1, but you have no permission to access this application. common en You have no permission to access application %1 ! your code is incorrect !!! common en Code is incorrect!