fix the overflow issue when the width/height == 0px