fix line-wrapping for legend element in FF 4+