Prevent graphics size going to zero (happens on minimize).