fixes bug where scale9 didn't take into account local positioning