Merge pull request #327 from DarkKnightCZ/XWIKI-11020

XWIKI-11020: Gallery widget sets invalid dimensions for container element in maximized mode
(cherry picked from commit 27052af499559f653f9703802a38d1f5cbdaeffd)