| Index: chrome/browser/ui/views/task_manager_view.cc
|
| diff --git a/chrome/browser/ui/views/task_manager_view.cc b/chrome/browser/ui/views/task_manager_view.cc
|
| index ba09251951a93c765242979e80dc937a3c4bf8f6..ad6fc889eb03b35938b22c4d939a88f29da71d9b 100644
|
| --- a/chrome/browser/ui/views/task_manager_view.cc
|
| +++ b/chrome/browser/ui/views/task_manager_view.cc
|
| @@ -152,7 +152,16 @@ void TaskManagerView::SetSortDescriptor(const TableSortDescriptor& descriptor) {
|
| }
|
|
|
| gfx::Size TaskManagerView::GetPreferredSize() const {
|
| - return gfx::Size(460, 270);
|
| + gfx::Size table_size = tab_table_parent_->GetPreferredSize();
|
| + // The task name column expands to use excess space but also defaults to
|
| + // to a very narrow width: just enough to fit "Task" in English, and not
|
| + // enough to fit most actual task names such as "Tab: My email inbox". Add
|
| + // some extra width here to make the task names more readable.
|
| + table_size.set_width(table_size.width() + 180);
|
| + table_size.set_height(270);
|
| + gfx::Insets border = GetInsets();
|
| + table_size.Enlarge(border.width(), border.height());
|
| + return table_size;
|
| }
|
|
|
| bool TaskManagerView::AcceleratorPressed(const ui::Accelerator& accelerator) {
|
|
|