This one should be "if self.bar_side_x == 'bottom'" because this is for the horizontal bar.

Might I suggest that instead of using bar_side_x/y, which may not be instantly obvious if it's the vertical or horizontal bar, that you use bar_side_h/v, or bar_location_h/v.