fix reflow-to-native box calculation