making modal layout after render by triggering window resize event. fixes mysterioustrousers/browser#118