projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6c2d2d
)
Pman.Gnumeric.js
author
Alan Knowles
<alan@akbkhome.com>
Wed, 17 Nov 2010 08:35:32 +0000
(16:35 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 17 Nov 2010 08:35:32 +0000
(16:35 +0800)
Pman.Gnumeric.js
patch
|
blob
|
history
diff --git
a/Pman.Gnumeric.js
b/Pman.Gnumeric.js
index
2306c12
..
f8ff725
100644
(file)
--- a/
Pman.Gnumeric.js
+++ b/
Pman.Gnumeric.js
@@
-730,6
+730,20
@@
Roo.extend(Pman.Gnumeric, Roo.util.Observable, {
for (i =0; i < nc; i++) {
ret.pos[ Roo.get(ar[i]).getLeft()] =i;
}
+ ret.near = function(p) {
+ // which one is nearest..
+ var prox = 100000;
+ var match = 0;
+ for(var i in this.pos) {
+ var dis = Math.abs(p-i);
+ if (dis < prox) {
+ prox = dis;
+ match = this.pos[i];
+ }
+ }
+ return match;
+
+ }
table.removeChild(tr);
return ret;
},