From ea560e8cbf77beebca991a03c60bef3245617cef Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 11 Feb 2015 10:34:44 +0000 Subject: [PATCH] Fix home portlets not being properly placed in Firefox --- home/js/app.js | 2 +- home/templates/default/app.css | 2 +- home/templates/pixelegg/app.css | 2 +- home/templates/pixelegg/app.less | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/home/js/app.js b/home/js/app.js index a23ec3d8a8..92a33c1f0f 100644 --- a/home/js/app.js +++ b/home/js/app.js @@ -149,7 +149,7 @@ app.classes.home = AppJS.extend( // Handle bad timing - a sub-template was finished first if(!this.portlet_container) { - window.setTimeout(jQuery.proxy(this, function() {this.et2_ready(et2, name);}),200); + window.setTimeout(jQuery.proxy(function() {this.et2_ready(et2, name);},this),200); return; } diff --git a/home/templates/default/app.css b/home/templates/default/app.css index 8a507f3960..e0fb9d45d6 100644 --- a/home/templates/default/app.css +++ b/home/templates/default/app.css @@ -63,7 +63,7 @@ div.calendar_favorite_portlet.et2_portlet.ui-widget-content > div:last-of-type { /** * Portlet styling (cosmetic) */ -.et2_portlet.ui-widget-content > div:last-of-type > div { +.et2_portlet.ui-widget-content > div:last-of-type > .et2_container { background: linear-gradient(to bottom, rgba(255,255,255,.9) 10%,rgba(255,255,255,.75) 90%) /* W3C */ } diff --git a/home/templates/pixelegg/app.css b/home/templates/pixelegg/app.css index c567766b70..7bc709d0d1 100755 --- a/home/templates/pixelegg/app.css +++ b/home/templates/pixelegg/app.css @@ -66,7 +66,7 @@ div.calendar_favorite_portlet.et2_portlet.ui-widget-content > div:last-of-type { /** * Portlet styling (cosmetic) */ -.et2_portlet.ui-widget-content > div:last-of-type > div { +.et2_portlet.ui-widget-content > div:last-of-type > .et2_container { background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 10%, rgba(255, 255, 255, 0.75) 90%) /* W3C */; } /* Single entry */ diff --git a/home/templates/pixelegg/app.less b/home/templates/pixelegg/app.less index 969f4912ee..3401c01a72 100755 --- a/home/templates/pixelegg/app.less +++ b/home/templates/pixelegg/app.less @@ -13,4 +13,4 @@ @import (reference) "../../../pixelegg/less/def_buttons.less"; @import (reference) "../../../pixelegg/less/def_design_pattern_color_font_shadow.less"; -@import (less) "../default/app.css"; \ No newline at end of file +@import (less) "../default/app.css";