You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mm...@apache.org on 2005/11/10 18:04:30 UTC
svn commit: r332329 -
/myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/prototype/resource/controls.js
Author: mmarinschek
Date: Thu Nov 10 09:04:13 2005
New Revision: 332329
URL: http://svn.apache.org/viewcvs?rev=332329&view=rev
Log:
partial fix for MYFACES-705. Thanks to Volker Weber.
Modified:
myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/prototype/resource/controls.js
Modified: myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/prototype/resource/controls.js
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/prototype/resource/controls.js?rev=332329&r1=332328&r2=332329&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/prototype/resource/controls.js (original)
+++ myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/prototype/resource/controls.js Thu Nov 10 09:04:13 2005
@@ -110,8 +110,16 @@
Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this));
},
+ resetWidth: function() {
+ this.update.style.width = this.element.offsetWidth + 'px';
+ if (this.update.scrollWidth - 8 > this.element.offsetWidth) {
+ this.update.style.width = (this.update.scrollWidth - 6) + 'px';
+ }
+ },
+
show: function() {
if(this.update.style.display=='none') this.options.onShow(this.element, this.update);
+ this.resetWidth();
if(!this.iefix && (navigator.appVersion.indexOf('MSIE')>0) && this.update.style.position=='absolute') {
new Insertion.After(this.update,
'<iframe id="' + this.update.id + '_iefix" '+