Author: eallen
Date: 2008-11-01 18:27:51 -0400 (Sat, 01 Nov 2008)
New Revision: 2728
Modified:
mgmt/trunk/cumin/python/cumin/stat.strings
Log:
Remove inefficiency in javascript
Modified: mgmt/trunk/cumin/python/cumin/stat.strings
===================================================================
--- mgmt/trunk/cumin/python/cumin/stat.strings 2008-11-01 22:25:18 UTC (rev 2727)
+++ mgmt/trunk/cumin/python/cumin/stat.strings 2008-11-01 22:27:51 UTC (rev 2728)
@@ -212,14 +212,12 @@
if (oGrid) {
var left = this.get_left(oGrid);
var right = left + oGrid.offsetWidth;
- var rule = this.find_rule();
- if (rule) {
- var wwidth = 9999;
- if (window.innerWidth)
- wwidth = window.innerWidth;
- else if (document.documentElement)
- wwidth = document.documentElement.clientWidth;
- if (right + 310 > wwidth) {
+ var wwidth = 9999;
+ if (window.innerWidth)
+ wwidth = window.innerWidth;
+ if (right + 310 > wwidth) {
+ var rule = this.find_rule();
+ if (rule) {
rule.style.left = "";
rule.style.right = "50%";
}
Show replies by date