зеркало из https://github.com/mozilla/gecko-dev.git
Bug 409587 - "input[type="file"] cropped when narrow width specified" [p=kinetik@flim.org (Matthew Gregan) r+sr=roc a1.9=beltzner]
This commit is contained in:
Родитель
cbe9497692
Коммит
4438253756
|
@ -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
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
<div><input type="file" style="width: 5px"></div>
|
||||
<div><input type="file" style="width: 500px"></div>
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
<div style="width: 5px;"><input type="file"></div>
|
||||
<div style="width: 500px;"><input type="file"></div>
|
||||
|
|
@ -0,0 +1 @@
|
|||
== input-file-width-clip-1.html input-file-width-clip-ref.html # bug 409587
|
|
@ -84,3 +84,6 @@ include line-breaking/reftest.list
|
|||
# percent-overflow-sizing
|
||||
include percent-overflow-sizing/reftest.list
|
||||
|
||||
# forms
|
||||
include forms/reftest.list
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче