XWIKI-11020: Gallery widget sets invalid dimensions for container element in maximized mode

#326