From ab101ee3b780001e2fa1292f01a7fff8f2a3db4a Mon Sep 17 00:00:00 2001 From: Batalov Sergey Date: Thu, 25 Aug 2016 16:07:36 +0500 Subject: [PATCH] TreeSeparator node did not know about horiz. layout. Fixed. --- core/toolbox.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/toolbox.js b/core/toolbox.js index 77be45d4b..d559b577d 100644 --- a/core/toolbox.js +++ b/core/toolbox.js @@ -542,7 +542,6 @@ Blockly.Toolbox.TreeControl.prototype.setSelectedItem = function(node) { Blockly.Toolbox.TreeNode = function(toolbox, html, opt_config, opt_domHelper) { goog.ui.tree.TreeNode.call(this, html, opt_config, opt_domHelper); if (toolbox) { - this.horizontalLayout_ = toolbox.horizontalLayout_; var resize = function() { // Even though the div hasn't changed size, the visible workspace // surface of the workspace has, so we may need to reposition everything. @@ -603,7 +602,7 @@ Blockly.Toolbox.TreeNode.prototype.onDoubleClick_ = function(e) { * @private */ Blockly.Toolbox.TreeNode.prototype.onKeyDown = function(e) { - if (this.horizontalLayout_) { + if (this.tree.toolbox_.horizontalLayout_) { var map = {}; var next = goog.events.KeyCodes.DOWN var prev = goog.events.KeyCodes.UP