Commit 02674827 authored by techird's avatar techird

键盘导航问题修复

parent ef8365bc
...@@ -4,10 +4,10 @@ KityMinder.registerModule( "KeyboardModule", function () { ...@@ -4,10 +4,10 @@ KityMinder.registerModule( "KeyboardModule", function () {
var pointIndexes = [], var pointIndexes = [],
p; p;
root.traverse( function ( node ) { root.traverse( function ( node ) {
p = node.getData( 'point' ); p = node.getRenderContainer().getRenderBox( 'top' );
pointIndexes.push( { pointIndexes.push( {
x: p.x, x: p.x + p.width / 2,
y: p.y, y: p.y + p.height / 2,
node: node node: node
} ); } );
} ); } );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment