Bug 503791. ComboboxControlFrame should not assume that the origin of the screen is (0,0) because that is not true with more than one display. r=dbaron
This commit is contained in:
@@ -177,9 +177,9 @@ nsFormControlFrame::GetFormProperty(nsIAtom* aName, nsAString& aValue) const
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsFormControlFrame::GetScreenHeight(nsPresContext* aPresContext,
|
||||
nscoord& aHeight)
|
||||
// static
|
||||
nsRect
|
||||
nsFormControlFrame::GetUsableScreenRect(nsPresContext* aPresContext)
|
||||
{
|
||||
nsRect screen;
|
||||
|
||||
@@ -189,10 +189,9 @@ nsFormControlFrame::GetScreenHeight(nsPresContext* aPresContext,
|
||||
lookAndFeel->GetMetric(nsILookAndFeel::eMetric_MenusCanOverlapOSBar,
|
||||
dropdownCanOverlapOSBar);
|
||||
if ( dropdownCanOverlapOSBar )
|
||||
context->GetRect ( screen );
|
||||
context->GetRect(screen);
|
||||
else
|
||||
context->GetClientRect(screen);
|
||||
|
||||
aHeight = aPresContext->AppUnitsToDevPixels(screen.height);
|
||||
return NS_OK;
|
||||
return screen;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user