Lines Matching refs:newTop
235 function makeContainerPosVisible(container, newTop) { argument
238 if (newTop < container.scrollTop + margin) {
239 newTop -= margin;
240 if (newTop < 0) newTop = 0;
241 container.scrollTop = newTop;
244 if (newTop > (container.scrollTop + 3 * margin)) {
245 newTop = newTop - 3 * margin;
246 container.scrollTop = newTop;
250 function makeAsmPosVisible(newTop) { argument
252 makeContainerPosVisible(asmContainer, newTop);
255 function makeSourcePosVisible(newTop) { argument
257 makeContainerPosVisible(sourceContainer, newTop);