[richfaces-svn-commits] JBoss Rich Faces SVN: r11947 - trunk/samples/richfaces-demo/src/main/webapp/scripts.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Sat Dec 20 10:31:03 EST 2008
Author: ilya_shaikovsky
Date: 2008-12-20 10:31:03 -0500 (Sat, 20 Dec 2008)
New Revision: 11947
Modified:
trunk/samples/richfaces-demo/src/main/webapp/scripts/picturesUtils.js
Log:
https://jira.jboss.org/jira/browse/RF-5430
Modified: trunk/samples/richfaces-demo/src/main/webapp/scripts/picturesUtils.js
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/scripts/picturesUtils.js 2008-12-20 15:26:47 UTC (rev 11946)
+++ trunk/samples/richfaces-demo/src/main/webapp/scripts/picturesUtils.js 2008-12-20 15:31:03 UTC (rev 11947)
@@ -4,7 +4,7 @@
var w = Math.round(pic.width * coeff);
var h = Math.round(pic.height * coeff);
- if (w > 1 && h > 1) {
+ if (w > 1 && h > 1 && h<1000 && w<1000) {
pic.width = w;
pic.heigth = h;
}
More information about the richfaces-svn-commits
mailing list