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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user