Bug 834464 - Rtl pagebar fix r=kaze

This will fix two bugs in pagination bar related to rtl