fix equalWidth/Height ancestor issue