Current Behavior
Hidden nodes are considered in calculation of X domain. Example:

Expected behavior
Hidden nodes should not be considered in calculation of X domain Example with #1951:

Possible solution
Use getBranchVisibility() when calculating nodesInDomain: #1951