You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rave.apache.org by cg...@apache.org on 2013/01/16 00:04:31 UTC

svn commit: r1433727 - /rave/trunk/rave-portal-resources/src/main/webapp/static/script/rave.js

Author: cgeer
Date: Tue Jan 15 23:04:30 2013
New Revision: 1433727

URL: http://svn.apache.org/viewvc?rev=1433727&view=rev
Log:
RAVE-870 Fixed issue with the size of the "sneeze guard". Patch from Jack Weaver

Modified:
    rave/trunk/rave-portal-resources/src/main/webapp/static/script/rave.js

Modified: rave/trunk/rave-portal-resources/src/main/webapp/static/script/rave.js
URL: http://svn.apache.org/viewvc/rave/trunk/rave-portal-resources/src/main/webapp/static/script/rave.js?rev=1433727&r1=1433726&r2=1433727&view=diff
==============================================================================
--- rave/trunk/rave-portal-resources/src/main/webapp/static/script/rave.js (original)
+++ rave/trunk/rave-portal-resources/src/main/webapp/static/script/rave.js Tue Jan 15 23:04:30 2013
@@ -411,6 +411,11 @@ var rave = rave || (function () {
             var widget = rave.getRegionWidgetById(regionWidgetId);
             if (typeof widget != "undefined" && isFunction(widget.maximize)) {
                 widget.maximize(view_params, args.data.view);
+                // due to widget list changing height of the window, we have to set the height of the sneeze-guard here.
+                var overlayStyleMap = {
+                    height:$('.wrapper').height() - $('.navbar').height() - $('.logo-wrapper').height()
+                };
+                $('.canvas-overlay').css(overlayStyleMap);
             }
         }