You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by mt...@apache.org on 2007/01/11 00:32:58 UTC

svn commit: r495062 - /incubator/xap/trunk/src/xap/bridges/dojo/TabPaneBridge.js

Author: mturyn
Date: Wed Jan 10 16:32:57 2007
New Revision: 495062

URL: http://svn.apache.org/viewvc?view=rev&rev=495062
Log:
http://issues.apache.org/jira/browse/XAP-142
Suppressed scrollbars by hiding overflow in the container node DIV.
They don't anything useful here, and can be obtrusive; if a user should
want scrollable content, she can use a ScrollPane.

Modified:
    incubator/xap/trunk/src/xap/bridges/dojo/TabPaneBridge.js

Modified: incubator/xap/trunk/src/xap/bridges/dojo/TabPaneBridge.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/bridges/dojo/TabPaneBridge.js?view=diff&rev=495062&r1=495061&r2=495062
==============================================================================
--- incubator/xap/trunk/src/xap/bridges/dojo/TabPaneBridge.js (original)
+++ incubator/xap/trunk/src/xap/bridges/dojo/TabPaneBridge.js Wed Jan 10 16:32:57 2007
@@ -51,6 +51,19 @@
 }
 
 xap.bridges.dojo.TabPaneBridge.prototype.addChild = function(childHandler, index){
+	// Don't need to do this until we add children...
+	// ...and only need to do it once---could put it
+	// into init() but don't want to add the method
+	// at this point:
+	if(!this._removedScrollbars 
+			&& this.getPeer()
+				&& this.getPeer().containerNode
+					&& this.getPeer().containerNode.style
+		){
+		this.getPeer().containerNode.style.overflow = "hidden" ;
+		this._removedScrollbars = true ;
+	}
+
 	var oldSelectedTab = this.getPeer().selectedTabWidget;
 	this.superclass.addChild.call(this,childHandler, index );
 	var newSelectedTab = this.getPeer().selectedTabWidget;