From graffito-commits-return-149-apmail-incubator-graffito-commits-archive=www.apache.org@incubator.apache.org Fri May 06 21:05:07 2005 Return-Path: Delivered-To: apmail-incubator-graffito-commits-archive@www.apache.org Received: (qmail 27786 invoked from network); 6 May 2005 21:05:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 May 2005 21:05:07 -0000 Received: (qmail 59820 invoked by uid 500); 6 May 2005 21:07:30 -0000 Mailing-List: contact graffito-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: graffito-dev@incubator.apache.org Delivered-To: mailing list graffito-commits@incubator.apache.org Received: (qmail 59740 invoked by uid 500); 6 May 2005 21:07:29 -0000 Delivered-To: apmail-incubator-graffito-cvs@incubator.apache.org Received: (qmail 59691 invoked by uid 99); 6 May 2005 21:07:28 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 06 May 2005 14:07:28 -0700 Received: (qmail 27584 invoked by uid 65534); 6 May 2005 21:04:37 -0000 Message-ID: <20050506210437.27579.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: svn commit: r168652 - /incubator/graffito/trunk/applications/graffito-portlets/src/java/org/apache/portals/graffito/portlets/DocumentPortlet.java Date: Fri, 06 May 2005 21:04:36 -0000 To: graffito-cvs@incubator.apache.org From: taylor@apache.org X-Mailer: svnmailer-1.0.0-dev X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: taylor Date: Fri May 6 14:04:35 2005 New Revision: 168652 URL: http://svn.apache.org/viewcvs?rev=3D168652&view=3Drev Log: make scrollable div optional Modified: incubator/graffito/trunk/applications/graffito-portlets/src/java/org/ap= ache/portals/graffito/portlets/DocumentPortlet.java Modified: incubator/graffito/trunk/applications/graffito-portlets/src/java/= org/apache/portals/graffito/portlets/DocumentPortlet.java URL: http://svn.apache.org/viewcvs/incubator/graffito/trunk/applications/gr= affito-portlets/src/java/org/apache/portals/graffito/portlets/DocumentPortl= et.java?rev=3D168652&r1=3D168651&r2=3D168652&view=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/graffito/trunk/applications/graffito-portlets/src/java/org/ap= ache/portals/graffito/portlets/DocumentPortlet.java (original) +++ incubator/graffito/trunk/applications/graffito-portlets/src/java/org/ap= ache/portals/graffito/portlets/DocumentPortlet.java Fri May 6 14:04:35 2005 @@ -60,6 +60,7 @@ =20 protected ContentModelService cms; protected String stylesheet; + protected boolean useScrollableDiv =3D true; =20 public void doView(RenderRequest request, RenderResponse response) thr= ows PortletException, IOException { @@ -260,6 +261,12 @@ throw new PortletException("Failed to load CMS service"); } stylesheet =3D config.getInitParameter("stylesheet"); + String div =3D config.getInitParameter("scrollableDiv"); + if (div !=3D null) + { + if (div.equalsIgnoreCase("false")) + useScrollableDiv =3D false; + } } =20 }