Updated resizeAdaptive method