Index: ui/views/layout/grid_layout.cc |
diff --git a/ui/views/layout/grid_layout.cc b/ui/views/layout/grid_layout.cc |
index a378169aed93d90a605715e40d18f5929358c707..9466c5160d1558873e8df8336a01493e659ac3ca 100644 |
--- a/ui/views/layout/grid_layout.cc |
+++ b/ui/views/layout/grid_layout.cc |
@@ -57,7 +57,8 @@ class LayoutElement { |
for (typename std::vector<T*>::iterator i = elements->begin(); |
i != elements->end(); ++i) { |
total_percent += (*i)->ResizePercent(); |
- resize_count++; |
+ if ((*i)->ResizePercent() > 0) |
+ resize_count++; |
} |
if (total_percent == 0) { |
// None of the elements are resizable, return. |