diff --git a/addressbook/templates/default/app.css b/addressbook/templates/default/app.css
index 18608cce6b..f23494f07b 100644
--- a/addressbook/templates/default/app.css
+++ b/addressbook/templates/default/app.css
@@ -35,7 +35,6 @@ div#addressbook_view_sidebox img.photo {
* new addressbook.edit
*/
div#addressbook-edit.et2_container {
- width: 842px;
}
div.addressbook_edit_general_picture {
position: relative;
diff --git a/addressbook/templates/default/edit.xet b/addressbook/templates/default/edit.xet
index e4d9829b3d..df02c8b17a 100644
--- a/addressbook/templates/default/edit.xet
+++ b/addressbook/templates/default/edit.xet
@@ -54,7 +54,7 @@
-
+
@@ -162,7 +162,7 @@
-
+
@@ -172,7 +172,7 @@
-
+
@@ -192,7 +192,7 @@
-
+
@@ -201,7 +201,7 @@
-
+
@@ -304,7 +304,7 @@
-
+
@@ -325,26 +325,26 @@
-
+
-
+
-
+
-
+
-
+
@@ -394,7 +394,7 @@
-
+
diff --git a/addressbook/templates/pixelegg/app.css b/addressbook/templates/pixelegg/app.css
index b243554006..7a77b88fb7 100755
--- a/addressbook/templates/pixelegg/app.css
+++ b/addressbook/templates/pixelegg/app.css
@@ -46,9 +46,6 @@ div#addressbook_view_sidebox img.photo {
/**
* new addressbook.edit
*/
-div#addressbook-edit.et2_container {
- width: 842px;
-}
div.addressbook_edit_general_picture {
position: relative;
}
@@ -522,9 +519,6 @@ div#addressbook-index img.iphoto {
# #
# #
##############################################*/
- div#addressbook-edit.et2_container {
- width: 842px;
- }
div.addressbook_edit_general_picture img {
top: -4px;
width: 70px;
diff --git a/addressbook/templates/pixelegg/app.less b/addressbook/templates/pixelegg/app.less
index 63b1a5b90e..350eec114e 100755
--- a/addressbook/templates/pixelegg/app.less
+++ b/addressbook/templates/pixelegg/app.less
@@ -394,7 +394,6 @@ button#tracker-index-addressbook_add{
##############################################*/
div#addressbook-edit.et2_container {
- width: 842px;
}
// person image
diff --git a/etemplate/js/et2_widget_grid.js b/etemplate/js/et2_widget_grid.js
index 047eaf6c89..caa00861a9 100644
--- a/etemplate/js/et2_widget_grid.js
+++ b/etemplate/js/et2_widget_grid.js
@@ -985,12 +985,11 @@ var et2_grid = et2_DOMWidget.extend([et2_IDetachedDOM, et2_IAligned, et2_IResize
resize: function (_height)
{
- if (typeof this.options.resize_ratio != 'undefined'
- &&this.options.resize_ratio !='' && _height)
+ if (typeof this.options != 'undefined' && _height)
{
// apply the ratio
- _height *= this.options.resize_ratio;
- //this.table.height(this.table.height() + _height);
+ _height = (this.options.resize_ratio != '')? _height * this.options.resize_ratio: _height;
+ //if (_height != 0) this.table.height(this.table.height() + _height );
}
}
});
diff --git a/etemplate/js/et2_widget_tabs.js b/etemplate/js/et2_widget_tabs.js
index 4aeadbf16c..35db9ba236 100644
--- a/etemplate/js/et2_widget_tabs.js
+++ b/etemplate/js/et2_widget_tabs.js
@@ -35,6 +35,11 @@ var et2_tabbox = et2_valueWidget.extend([et2_IInput,et2_IResizeable],
'name': 'Add tabs',
'default': false,
'description': 'Set to true if tabs should be added to tabs from read from template, default false if not'
+ },
+ tab_height: {
+ name: 'Tabs innerHeight',
+ default: '',
+ description: 'Set the innerHeight for the tab content'
}
},
@@ -414,7 +419,13 @@ var et2_tabbox = et2_valueWidget.extend([et2_IInput,et2_IResizeable],
return null;
}
},
-
+
+ set_tab_height: function (_height)
+ {
+ this.tab_height = _height;
+ this.tabContainer.css("height", _height);
+ },
+
set_height: function(_value) {
this.height = _value;
@@ -451,7 +462,12 @@ var et2_tabbox = et2_valueWidget.extend([et2_IInput,et2_IResizeable],
{
if(_height)
{
- this.tabContainer.height(this.tabContainer.height() + _height);
+ this.set_height(this.tabContainer.height() + _height);
+ }
+ //Set the height of tabs with the heighest height
+ else if(_height === 0)
+ {
+ this.set_height(this.tabContainer.height());
}
}
});
diff --git a/etemplate/js/et2_widget_textbox.js b/etemplate/js/et2_widget_textbox.js
index ec850faf16..b321d26679 100644
--- a/etemplate/js/et2_widget_textbox.js
+++ b/etemplate/js/et2_widget_textbox.js
@@ -235,13 +235,11 @@ var et2_textbox = et2_inputWidget.extend([et2_IResizeable],
resize: function (_height)
{
- if (typeof this.options.resize_ratio != 'undefined'
- &&this.options.resize_ratio !='' && _height)
+ if (_height && this.options.multiline)
{
// apply the ratio
- _height *= this.options.resize_ratio;
-
- this.input.height(this.input.height() + _height);
+ _height = (this.options.resize_ratio != '')? _height * this.options.resize_ratio: _height;
+ if (_height != 0) this.input.height(this.input.height() + _height);
}
}
});
diff --git a/etemplate/js/etemplate2.js b/etemplate/js/etemplate2.js
index 3d3e09b84e..63f91f95a4 100644
--- a/etemplate/js/etemplate2.js
+++ b/etemplate/js/etemplate2.js
@@ -106,12 +106,14 @@ etemplate2.prototype.templates = {};
/**
* Calls the resize event of all widgets
*/
-etemplate2.prototype.resize = function()
+etemplate2.prototype.resize = function(e)
{
if (this.widgetContainer)
{
//Calculate the excess height
- var excess_height = egw(window).is_popup()? $j(window).height() - $j('.et2_container').height() - 20: false;
+ var excess_height = egw(window).is_popup()? $j(window).height() - $j('.et2_container').height() - 26: false;
+ if (typeof e != 'undefined' && e.type !== 'resize') excess_height = 0;
+
// Call the "resize" event of all functions which implement the
// "IResizeable" interface
this.widgetContainer.iterateOver(function(_widget) {
@@ -395,7 +397,7 @@ etemplate2.prototype.load = function(_name, _url, _data, _callback)
this.widgetContainer.loadingFinished(deferred);
// Connect to the window resize event
- $j(window).on("resize."+this.uniqueId, this, function(e) {e.data.resize();});
+ $j(window).on("resize."+this.uniqueId, this, function(e) {e.data.resize(e);});
// Insert the document fragment to the DOM Container
this.DOMContainer.appendChild(frag);
diff --git a/infolog/templates/default/edit.xet b/infolog/templates/default/edit.xet
index 9987edad35..97bc0fe30d 100644
--- a/infolog/templates/default/edit.xet
+++ b/infolog/templates/default/edit.xet
@@ -5,7 +5,7 @@
-
+
@@ -27,7 +27,7 @@
-
+
@@ -67,7 +67,7 @@
-
+
@@ -82,10 +82,10 @@
-
+
-
+
@@ -212,8 +212,8 @@
-
-
+
+
diff --git a/mail/templates/default/compose.xet b/mail/templates/default/compose.xet
index 4dd34428d1..7e4e8efa02 100644
--- a/mail/templates/default/compose.xet
+++ b/mail/templates/default/compose.xet
@@ -37,7 +37,7 @@
-
+
@@ -109,7 +109,7 @@
-
+
@@ -117,7 +117,7 @@
-
+
diff --git a/timesheet/templates/default/edit.xet b/timesheet/templates/default/edit.xet
index 74a6ec2e30..0563cccbf2 100644
--- a/timesheet/templates/default/edit.xet
+++ b/timesheet/templates/default/edit.xet
@@ -2,7 +2,7 @@
-
+
@@ -53,10 +53,10 @@
-
+
-
+
@@ -77,12 +77,12 @@
-
-
+
+
-
+
@@ -123,7 +123,7 @@
-
+