[open-ils-commits] r14496 - tags/rel_1_6_0_0/Open-ILS/xul/staff_client/chrome/content/util (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Oct 19 13:12:24 EDT 2009
Author: phasefx
Date: 2009-10-19 13:12:20 -0400 (Mon, 19 Oct 2009)
New Revision: 14496
Modified:
tags/rel_1_6_0_0/Open-ILS/xul/staff_client/chrome/content/util/list.js
Log:
backport changeset 14467, for xulrunner 1.9 change to scrollbars in lists (fixes bug where off-screen rows don't flesh themselves when they become visible)
Modified: tags/rel_1_6_0_0/Open-ILS/xul/staff_client/chrome/content/util/list.js
===================================================================
--- tags/rel_1_6_0_0/Open-ILS/xul/staff_client/chrome/content/util/list.js 2009-10-19 17:12:17 UTC (rev 14495)
+++ tags/rel_1_6_0_0/Open-ILS/xul/staff_client/chrome/content/util/list.js 2009-10-19 17:12:20 UTC (rev 14496)
@@ -682,7 +682,17 @@
//dump('detect_visible obj.node = ' + obj.node + '\n');
/* FIXME - this is a hack.. if the implementation of tree changes, this could break */
try {
- var scrollbar = document.getAnonymousNodes( document.getAnonymousNodes(obj.node)[1] )[1];
+ /*var s = ''; var A = document.getAnonymousNodes(obj.node);
+ for (var i in A) {
+ var B = A[i];
+ s += '\t' + (typeof B.nodeName != 'undefined' ? B.nodeName : B ) + '\n';
+ if (typeof B.childNodes != 'undefined') for (var j = 0; j < B.childNodes.length; j++) {
+ var C = B.childNodes[j];
+ s += '\t\t' + C.nodeName + '\n';
+ }
+ }
+ obj.error.sdump('D_XULRUNNER','document.getAnonymousNodes(' + obj.node.nodeName + ') = \n' + s + '\n');*/
+ var scrollbar = document.getAnonymousNodes(obj.node)[2].firstChild;
var curpos = scrollbar.getAttribute('curpos');
var maxpos = scrollbar.getAttribute('maxpos');
//alert('curpos = ' + curpos + ' maxpos = ' + maxpos + ' obj.curpos = ' + obj.curpos + ' obj.maxpos = ' + obj.maxpos + '\n');
More information about the open-ils-commits
mailing list