You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2014/11/26 16:35:14 UTC

svn commit: r1641835 - in /myfaces/tobago/branches/tobago-3.0.x/tobago-theme: tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/style/ tobago-theme-standard/src/main/resources/org/apache/myfaces/t...

Author: lofwyr
Date: Wed Nov 26 15:35:14 2014
New Revision: 1641835

URL: http://svn.apache.org/r1641835
Log:
TOBAGO-1358
 - Fix popup positioning

Modified:
    myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/style/tobago.css
    myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/style/tobago.css
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/style/tobago.css?rev=1641835&r1=1641834&r2=1641835&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/style/tobago.css (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/style/tobago.css Wed Nov 26 15:35:14 2014
@@ -713,6 +713,10 @@ li.tobago-menu-markup-selected {
 
 /* popup -------------------------------------------------------------- */
 
+.tobago-popup {
+  position: absolute;
+}
+
 .tobago-popup-shield {
   cursor: wait;
   width: 100%;

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js?rev=1641835&r1=1641834&r2=1641835&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js Wed Nov 26 15:35:14 2014
@@ -925,8 +925,15 @@ var Tobago = {
 
   initCss: function(elements) {
     // element styles
-/*
     console.time("[tobago] initCss"); // @DEV_ONLY
+    Tobago.Utils.selectWidthJQuery(elements, ".tobago-popup[data-tobago-style]").each(function () {
+      var element = jQuery(this);
+      element.css("left", element.data("tobago-style").left);
+      element.css("top", element.data("tobago-style").top);
+      element.css("width", element.data("tobago-style").width);
+      element.css("height", element.data("tobago-style").height);
+    });
+/* XXX this is the old Tobago 2.0 behaviour, should be deleded und removing these information from the tags
     Tobago.Utils.selectWidthJQuery(elements, "[data-tobago-style]").each(function () {
       var element = jQuery(this);
       if (Tobago.browser.isMsie678) { // IE before 9 doesn't support multiple backgrounds, so we use only the first.
@@ -934,8 +941,8 @@ var Tobago = {
       }
       element.css(element.data("tobago-style"));
     });
-    console.timeEnd("[tobago] initCss"); // @DEV_ONLY
 */
+    console.timeEnd("[tobago] initCss"); // @DEV_ONLY
   },
 
   /* supports only two background images in the moment */