set gl viewport to widget rect to display text correctly