mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-14 20:22:00 +00:00
fix for page scrolling to scroll (one page - height of one line), not 80% of the page as before. bug 21348, r=evaughan,sfraser. a=brendan.
This commit is contained in:
parent
bcf74f0c56
commit
7d81a6f553
@ -1468,8 +1468,8 @@ nsGfxScrollFrameInner::ReflowScrollArea( nsIPresContext* aPresContext
|
||||
//SetAttribute(mHScrollbarFrame, nsXULAtoms::curpos, curX);
|
||||
SetAttribute(mVScrollbarFrame, nsXULAtoms::maxpos, maxY);
|
||||
SetAttribute(mHScrollbarFrame, nsXULAtoms::maxpos, maxX);
|
||||
SetAttribute(mVScrollbarFrame, nsXULAtoms::pageincrement, nscoord(float(scrollAreaSize.height)*0.8));
|
||||
SetAttribute(mHScrollbarFrame, nsXULAtoms::pageincrement, nscoord(float(scrollAreaSize.width)*0.8));
|
||||
SetAttribute(mVScrollbarFrame, nsXULAtoms::pageincrement, nscoord(scrollAreaSize.height - fontHeight));
|
||||
SetAttribute(mHScrollbarFrame, nsXULAtoms::pageincrement, nscoord(scrollAreaSize.width - 10*mOnePixel));
|
||||
|
||||
SetAttribute(mVScrollbarFrame, nsXULAtoms::increment, fontHeight);
|
||||
nsIScrollableView* scrollable = GetScrollableView(aPresContext);
|
||||
|
@ -1468,8 +1468,8 @@ nsGfxScrollFrameInner::ReflowScrollArea( nsIPresContext* aPresContext
|
||||
//SetAttribute(mHScrollbarFrame, nsXULAtoms::curpos, curX);
|
||||
SetAttribute(mVScrollbarFrame, nsXULAtoms::maxpos, maxY);
|
||||
SetAttribute(mHScrollbarFrame, nsXULAtoms::maxpos, maxX);
|
||||
SetAttribute(mVScrollbarFrame, nsXULAtoms::pageincrement, nscoord(float(scrollAreaSize.height)*0.8));
|
||||
SetAttribute(mHScrollbarFrame, nsXULAtoms::pageincrement, nscoord(float(scrollAreaSize.width)*0.8));
|
||||
SetAttribute(mVScrollbarFrame, nsXULAtoms::pageincrement, nscoord(scrollAreaSize.height - fontHeight));
|
||||
SetAttribute(mHScrollbarFrame, nsXULAtoms::pageincrement, nscoord(scrollAreaSize.width - 10*mOnePixel));
|
||||
|
||||
SetAttribute(mVScrollbarFrame, nsXULAtoms::increment, fontHeight);
|
||||
nsIScrollableView* scrollable = GetScrollableView(aPresContext);
|
||||
|
Loading…
x
Reference in New Issue
Block a user