Fix Gallery.text layout