assert richtext widget has width of 0