You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by sm...@apache.org on 2007/03/02 02:42:30 UTC
svn commit: r513579 -
/portals/jetspeed-2/trunk/src/webapp/javascript/jetspeed/widget/PortletWindow.js
Author: smilek
Date: Thu Mar 1 17:42:30 2007
New Revision: 513579
URL: http://svn.apache.org/viewvc?view=rev&rev=513579
Log:
removed IE specific setting of window domNode and containerNode widths (these settings are no longer needed due to other style changes)
Modified:
portals/jetspeed-2/trunk/src/webapp/javascript/jetspeed/widget/PortletWindow.js
Modified: portals/jetspeed-2/trunk/src/webapp/javascript/jetspeed/widget/PortletWindow.js
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/src/webapp/javascript/jetspeed/widget/PortletWindow.js?view=diff&rev=513579&r1=513578&r2=513579
==============================================================================
--- portals/jetspeed-2/trunk/src/webapp/javascript/jetspeed/widget/PortletWindow.js (original)
+++ portals/jetspeed-2/trunk/src/webapp/javascript/jetspeed/widget/PortletWindow.js Thu Mar 1 17:42:30 2007
@@ -172,16 +172,7 @@
{
var windowicon = this.getInitProperty( jetspeed.id.PORTLET_PROP_WINDOW_ICON );
if ( ! windowicon )
- {
- if ( jetspeed.debugPortletWindowIcons )
- {
- windowicon = jetspeed.debugPortletWindowIcons[Math.floor(Math.random()*jetspeed.debugPortletWindowIcons.length)];
- }
- else
- {
- windowicon = "document.gif";
- }
- }
+ windowicon = "document.gif";
this.iconSrc = new dojo.uri.Uri(jetspeed.url.basePortalDesktopUrl() + this.windowDecorationConfig.windowIconPath + windowicon ) ;
if ( this.portletInitialized && this.titleBarIcon )
{
@@ -1355,8 +1346,9 @@
//dojo.lang.setTimeout( this, this._IEPostResize, 10 );
// IE will adjust consistently if step is deferred
//this.containerNode.style.width = "99%";
- this.containerNode.style.width = "100%";
+ //this.containerNode.style.width = "100%";
//this.containerNode.style.marginLeft = "2px";
+ this.containerNode.style.width = "";
}
else
{
@@ -1394,8 +1386,8 @@
// which fixes the IE problem where part of containerNode scroll bars outside window bounds
//
// NOTE: not in use currently from resizeTo - slows down resize too much
- this.containerNode.style.width = "99%";
- this.containerNode.style.width = "100%";
+ //this.containerNode.style.width = "99%";
+ //this.containerNode.style.width = "100%";
},
_adjustPositionToDesktopState: function()
@@ -1453,7 +1445,8 @@
}
if ( dojo.render.html.ie )
{
- this.containerNode.style.width = "100%";
+ //this.containerNode.style.width = "100%";
+ this.containerNode.style.width = "";
}
else
{
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org