Skip to content

Commit

Permalink
More cleanup for ComboBox arch support, removed closure vars and unus…
Browse files Browse the repository at this point in the history
…ed lookup code, see #162
  • Loading branch information
samreid committed Mar 10, 2015
1 parent 7f9c9b2 commit 620f27d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/ComboBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,13 @@ define( function( require ) {
var moveList = function() {
var pButtonGlobal, pButtonLocal;
if ( options.listPosition === 'above' ) {
pButtonGlobal = self.localToGlobalPoint( new Vector2( self.buttonNode.left, self.buttonNode.top ) );
pButtonGlobal = self.localToGlobalPoint( new Vector2( buttonNode.left, buttonNode.top ) );
pButtonLocal = listParent.globalToLocalPoint( pButtonGlobal );
listNode.left = pButtonLocal.x;
listNode.bottom = pButtonLocal.y;
}
else {
pButtonGlobal = self.localToGlobalPoint( new Vector2( self.buttonNode.left, self.buttonNode.bottom ) );
pButtonGlobal = self.localToGlobalPoint( new Vector2( buttonNode.left, buttonNode.bottom ) );
pButtonLocal = listParent.globalToLocalPoint( pButtonGlobal );
listNode.left = pButtonLocal.x;
listNode.top = pButtonLocal.y;
Expand Down

0 comments on commit 620f27d

Please sign in to comment.