mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Allow expanding diff elements to stay in-sync deeper
This commit is contained in:
		| @@ -82,7 +82,6 @@ | ||||
|                         that.addItem({}); | ||||
|                     }); | ||||
|             } | ||||
|             console.log(this.element.prop('id')); | ||||
|             if (this.element.css("position") === "absolute") { | ||||
|                 ["top","left","bottom","right"].forEach(function(s) { | ||||
|                     var v = that.element.css(s); | ||||
| @@ -90,7 +89,6 @@ | ||||
|                         that.topContainer.css(s,v); | ||||
|                         that.uiContainer.css(s,"0"); | ||||
|                         that.element.css(s,'auto'); | ||||
|                         console.log(s,v); | ||||
|                     } | ||||
|                 }) | ||||
|                 this.element.css("position","static"); | ||||
|   | ||||
| @@ -536,6 +536,17 @@ RED.utils = (function() { | ||||
|                     } | ||||
|                 } else if (subElements[targetPath] && subElements[targetPath].prop('expand') ) { | ||||
|                     subElements[targetPath].prop('expand')(targetPath,state); | ||||
|                 } else { | ||||
|                     for (var p in subElements) { | ||||
|                         if (subElements.hasOwnProperty(p)) { | ||||
|                             if (targetPath.indexOf(p) === 0) { | ||||
|                                 if (subElements[p].prop('expand') ) { | ||||
|                                     subElements[p].prop('expand')(targetPath,state); | ||||
|                                 } | ||||
|                                 break; | ||||
|                             } | ||||
|                         } | ||||
|                     } | ||||
|                 } | ||||
|             }}); | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user