MDL-41188 dialogue: fixed scrollpos reset occuring when using dialogue