BBug 554092, resizer overlaps content window scrollbar, r=roc

This commit is contained in:
Neil Deakin 2010-03-23 14:55:35 -04:00
Родитель 0238553242
Коммит 990ef92523
1 изменённых файлов: 4 добавлений и 5 удалений

Просмотреть файл

@ -3047,11 +3047,10 @@ nsGfxScrollFrameInner::AdjustScrollbarRectForResizer(
if (!widget || !widget->ShowsResizeIndicator(&widgetRect))
return;
nsRect resizerRect =
nsRect(aPresContext->DevPixelsToAppUnits(widgetRect.x) - offset.x,
aPresContext->DevPixelsToAppUnits(widgetRect.y) - offset.y,
aPresContext->DevPixelsToAppUnits(widgetRect.width),
aPresContext->DevPixelsToAppUnits(widgetRect.height));
resizerRect = nsRect(aPresContext->DevPixelsToAppUnits(widgetRect.x) - offset.x,
aPresContext->DevPixelsToAppUnits(widgetRect.y) - offset.y,
aPresContext->DevPixelsToAppUnits(widgetRect.width),
aPresContext->DevPixelsToAppUnits(widgetRect.height));
}
if (!resizerRect.Contains(aRect.BottomRight() - nsPoint(1, 1)))