| Index: Source/core/rendering/RenderListBox.cpp
|
| diff --git a/Source/core/rendering/RenderListBox.cpp b/Source/core/rendering/RenderListBox.cpp
|
| index 4a5fa8f77e09ac0b0f303ce00a2278bf701b3de2..3c0671b04af5d22099fc003c1df68b22c00c7afa 100644
|
| --- a/Source/core/rendering/RenderListBox.cpp
|
| +++ b/Source/core/rendering/RenderListBox.cpp
|
| @@ -290,7 +290,12 @@ LayoutUnit RenderListBox::listHeight() const
|
|
|
| void RenderListBox::computeLogicalHeight(LayoutUnit, LayoutUnit logicalTop, LogicalExtentComputedValues& computedValues) const
|
| {
|
| - LayoutUnit height = itemHeight() * size() - rowSpacing + borderAndPaddingHeight();
|
| + LayoutUnit height = itemHeight() * size() - rowSpacing;
|
| + // FIXME: The item height should have been added before updateLogicalHeight was called to avoid this hack.
|
| + updateIntrinsicContentLogicalHeight(height);
|
| +
|
| + height += borderAndPaddingHeight();
|
| +
|
| RenderBox::computeLogicalHeight(height, logicalTop, computedValues);
|
| }
|
|
|
|
|