ratio bar: set width automatically