| Index: ui/views/examples/widget_example.cc
|
| diff --git a/ui/views/examples/widget_example.cc b/ui/views/examples/widget_example.cc
|
| index 11d6504b4ba5938bcb2c02abf9e2584f9ba874e0..fecf3bec96e28a6f23eafa125dd6c2c31fc995e1 100644
|
| --- a/ui/views/examples/widget_example.cc
|
| +++ b/ui/views/examples/widget_example.cc
|
| @@ -109,7 +109,7 @@ void WidgetExample::CreateChild(View* parent, bool transparent) {
|
| // Compute where to place the child widget.
|
| // We'll place it at the center of the root widget.
|
| Widget* parent_widget = parent->GetWidget();
|
| - gfx::Rect bounds = parent_widget->GetClientAreaScreenBounds();
|
| + gfx::Rect bounds = parent_widget->GetClientAreaBoundsInScreen();
|
| // Child widget is 200x200 square.
|
| bounds.SetRect((bounds.width() - 200) / 2, (bounds.height() - 200) / 2,
|
| 200, 200);
|
|
|