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 2009/08/11 16:06:17 UTC

svn commit: r803132 - /myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/inputSuggest.js

Author: lofwyr
Date: Tue Aug 11 14:06:17 2009
New Revision: 803132

URL: http://svn.apache.org/viewvc?rev=803132&view=rev
Log:
TOBAGO-606: Layout-Manager
 - fix script
(from Marcus)

Modified:
    myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/inputSuggest.js

Modified: myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/inputSuggest.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/inputSuggest.js?rev=803132&r1=803131&r2=803132&view=diff
==============================================================================
--- myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/inputSuggest.js (original)
+++ myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/inputSuggest.js Tue Aug 11 14:06:17 2009
@@ -36,6 +36,8 @@
   var className = input.className;
   var width = input.style.width;
   var height = input.style.height.replace(/\D/g, "");
+  var left = input.style.left;
+  var onTop = input.style.top;
   var combo = new dijit.form.ComboBox({
       name: elementId,
       autocomplete: false,
@@ -47,7 +49,10 @@
   combo.staticClass = table.className.replace("dijitTextBox", className);
   table.className = combo.staticClass + " dijitTextBox";
   table.style.width = width;
-  table.style.height = height + "px";
+  table.style.height = (height - 2) + "px";
+  table.style.position = "absolute";
+  table.style.left = left;
+  table.style.top = onTop;
   input = Tobago.element(elementId);
   input.className = className;
   input.style.width = width;