| Index: ui/views/controls/separator.cc
|
| diff --git a/ui/views/controls/separator.cc b/ui/views/controls/separator.cc
|
| index 9a9bbbdc881c4892648a69d5c28b29e349a2b153..e16346127ba4010be0e23670e856280dff926eda 100644
|
| --- a/ui/views/controls/separator.cc
|
| +++ b/ui/views/controls/separator.cc
|
| @@ -44,9 +44,11 @@ void Separator::SetPreferredSize(int size) {
|
| // Separator, View overrides:
|
|
|
| gfx::Size Separator::GetPreferredSize() const {
|
| - if (orientation_ == HORIZONTAL)
|
| - return gfx::Size(width(), size_);
|
| - return gfx::Size(size_, height());
|
| + gfx::Size size =
|
| + orientation_ == HORIZONTAL ? gfx::Size(1, size_) : gfx::Size(size_, 1);
|
| + gfx::Insets insets = GetInsets();
|
| + size.Enlarge(insets.width(), insets.height());
|
| + return size;
|
| }
|
|
|
| void Separator::GetAccessibleState(ui::AXViewState* state) {
|
|
|