R49752 - /trunk/etemplate/js/etemplate2.js

Author: hnategh
New Revision: 49752

URL: http://svn.stylite.de/viewvc/egroupware?rev=49752&view=rev
Log:
Set a timeout to window resizer to make sure this happens after other resize events, hopefully fixes the timing issue

Modified:
trunk/etemplate/js/etemplate2.js

Modified: trunk/etemplate/js/etemplate2.js
URL: http://svn.stylite.de/viewvc/egroupware/trunk/etemplate/js/etemplate2.js?rev=49752&r1=49751&r2=49752&view=diff

— trunk/etemplate/js/etemplate2.js (original)
+++ trunk/etemplate/js/etemplate2.js Mon Dec 8 18:04:41 2014
@@ -108,25 +108,30 @@
*/
etemplate2.prototype.resize = function(e)
{

  • if (this.widgetContainer)
  • {
  •   var appHeader = $j('#divAppboxHeader');
    
  •   //Calculate the excess height
    
  •   var excess_height = egw(window).is_popup()? $j(window).height() - $j('.et2_container').height() - appHeader.outerHeight()+10: false;
    
  •   // Recalculate excess height if the appheader is shown, e.g. mobile framework dialogs
    
  •   if (appHeader.length > 0 && appHeader.is(':visible')) excess_height -= appHeader.outerHeight()-9;
    
  •   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) {
    
  •   	_widget.resize(excess_height);
    
  •   }, this, et2_IResizeable);
    
  • }
  • var event = e;
  • var self = this;
  • setTimeout(function(){
  •   if (self.widgetContainer)
    
  •   {
    
  •   	var appHeader = $j('#divAppboxHeader');
    
  •   	//Calculate the excess height
    
  •   	var excess_height = egw(window).is_popup()? $j(window).height() - $j('.et2_container').height() - appHeader.outerHeight()+10: false;
    
  •   	// Recalculate excess height if the appheader is shown, e.g. mobile framework dialogs
    
  •   	if (appHeader.length > 0 && appHeader.is(':visible')) excess_height -= appHeader.outerHeight()-9;
    
  •   	if (typeof event != 'undefined' && event.type !== 'resize') excess_height = 0;
    
  •   	// Call the "resize" event of all functions which implement the
    
  •   	// "IResizeable" interface
    
  •   	self.widgetContainer.iterateOver(function(_widget) {
    
  •   		_widget.resize(excess_height);
    
  •   	}, self, et2_IResizeable);
    
  •   }
    
  • },100)

};

/**


Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk


eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs