Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6208)

Unified Diff: chrome/browser/ui/views/task_manager_view.cc

Issue 2344703002: Fix task manager's default sizing. (Closed)
Patch Set: less work Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 513934e7a7322fdd50317b390513253d74da28c5..79d889218f47f55e841b6645a60aacdbbc744ee8 100644
--- a/chrome/browser/ui/views/task_manager_view.cc
+++ b/chrome/browser/ui/views/task_manager_view.cc
@@ -153,7 +153,11 @@ void TaskManagerView::SetSortDescriptor(const TableSortDescriptor& descriptor) {
}
gfx::Size TaskManagerView::GetPreferredSize() const {
- return gfx::Size(460, 270);
+ gfx::Size table_size = tab_table_parent_->GetPreferredSize();
+ 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) {

Powered by Google App Engine
This is Rietveld 408576698