| Index: views/controls/tabbed_pane/native_tabbed_pane_win.cc
|
| ===================================================================
|
| --- views/controls/tabbed_pane/native_tabbed_pane_win.cc (revision 74228)
|
| +++ views/controls/tabbed_pane/native_tabbed_pane_win.cc (working copy)
|
| @@ -57,7 +57,7 @@
|
| View* child = host->GetChildViewAt(i);
|
| // The child might not have been laid out yet.
|
| if (child == page)
|
| - child->SetBoundsRect(host->GetLocalBounds());
|
| + child->SetBoundsRect(host->GetContentsBounds());
|
| child->SetVisible(child == page);
|
| }
|
|
|
| @@ -72,7 +72,7 @@
|
| private:
|
| // LayoutManager overrides:
|
| virtual void Layout(View* host) {
|
| - gfx::Rect bounds(host->GetLocalBounds());
|
| + gfx::Rect bounds(host->GetContentsBounds());
|
| for (int i = 0; i < host->GetChildViewCount(); ++i) {
|
| View* child = host->GetChildViewAt(i);
|
| // We only layout visible children, since it may be expensive.
|
|
|