fixed resizing (in an ugly way, but window& context isn't triggered
anymore in resize() so it shouldn't be a problem)