Bug 1022755 - do not scroll if we're not in the right panel r=azasypkin

same here, I checked it was failing when I removed the "resolve()" call