Fix knob pos that not fit the bottom or right edge

Adding Math.ceil function on knob_pos calculation