Bug 409587 - "input[type="file"] cropped when narrow width specified" [p=kinetik@flim.org (Matthew Gregan) r+sr=roc a1.9=beltzner]

git-svn-id: svn://10.0.0.236/trunk@242601 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
reed%reedloden.com
2008-01-07 22:18:06 +00:00
parent 128a00f55f
commit cf9c2a7620
5 changed files with 14 additions and 2 deletions

View File

@@ -542,8 +542,10 @@ nsFileControlFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
tempList.BorderBackground()->DeleteAll();
rv = OverflowClip(aBuilder, tempList, aLists,
nsRect(aBuilder->ToReferenceFrame(this), GetSize()));
// Clip height only
nsRect clipRect(aBuilder->ToReferenceFrame(this), GetSize());
clipRect.width = GetOverflowRect().XMost();
rv = OverflowClip(aBuilder, tempList, aLists, clipRect);
NS_ENSURE_SUCCESS(rv, rv);
// Disabled file controls don't pass mouse events to their children, so we