| Index: ui/file_manager/file_manager/foreground/js/ui/file_table.js
|
| diff --git a/ui/file_manager/file_manager/foreground/js/ui/file_table.js b/ui/file_manager/file_manager/foreground/js/ui/file_table.js
|
| index 3ed3a3fac911da998065540b5a06a086af7f3c3d..e5ef7831f4ab15f28d35085d8f6bee2c5e819445 100644
|
| --- a/ui/file_manager/file_manager/foreground/js/ui/file_table.js
|
| +++ b/ui/file_manager/file_manager/foreground/js/ui/file_table.js
|
| @@ -57,7 +57,14 @@ FileTableColumnModel.prototype.applyColumnPositions_ = function(newPos) {
|
| }
|
| // Set the new width of columns
|
| for (var i = 0; i < this.columns_.length; i++) {
|
| - this.columns_[i].width = newPos[i + 1] - newPos[i];
|
| + if (!this.columns_[i].visible) {
|
| + this.columns_[i].width = 0;
|
| + } else {
|
| + // Make sure each cell has the minumum width. This is necessary when the
|
| + // window size is too small to contain all the columns.
|
| + this.columns_[i].width = Math.max(FileTableColumnModel.MIN_WIDTH_,
|
| + newPos[i + 1] - newPos[i]);
|
| + }
|
| }
|
| };
|
|
|
|
|