Fix #139: Wrong layout for ace after tab layout changed