Automatic dimensions wall element

Hey guys, I’m creating a node to dimension an element to the nearest wall, my problem is that it does the dimensions on the y axis, but on the x axis it doesn’t. It even creates the dimension but is not visible.

Captura2r

Can someone help me ?