Commit bf4f7d1a authored by hirono@chromium.org's avatar hirono@chromium.org

Suppressed resizing when the preview panel shows and hides.

Currently preview panel is transparent and does not affect the size of other
components. Thus this CL just removed call for onResize.

This CL also removes unused function requestResize.

BUG=238867
TEST=manually

Review URL: https://chromiumcodereview.appspot.com/15675007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203076 0039d316-1c4b-4281-b951-d872f2087c98
parent bed5c4ba
...@@ -1607,14 +1607,6 @@ DialogType.isModal = function(type) { ...@@ -1607,14 +1607,6 @@ DialogType.isModal = function(type) {
this.setupCurrentDirectory_(false /* page loading */); this.setupCurrentDirectory_(false /* page loading */);
}; };
/**
* @param {number=} opt_timeout Timeout in milliseconds.
* @private
*/
FileManager.prototype.requestResize_ = function(opt_timeout) {
setTimeout(this.onResize_.bind(this), opt_timeout || 0);
};
/** /**
* Resize details and thumb views to fit the new window size. * Resize details and thumb views to fit the new window size.
* @private * @private
......
...@@ -322,7 +322,6 @@ FileSelectionHandler.prototype.updatePreviewPanelVisibility_ = function() { ...@@ -322,7 +322,6 @@ FileSelectionHandler.prototype.updatePreviewPanelVisibility_ = function() {
!PathUtil.isRootPath(this.fileManager_.getCurrentDirectory())); !PathUtil.isRootPath(this.fileManager_.getCurrentDirectory()));
} }
var self = this; var self = this;
var fm = this.fileManager_;
var stopHidingAndShow = function() { var stopHidingAndShow = function() {
clearTimeout(self.hidingTimeout_); clearTimeout(self.hidingTimeout_);
...@@ -335,14 +334,12 @@ FileSelectionHandler.prototype.updatePreviewPanelVisibility_ = function() { ...@@ -335,14 +334,12 @@ FileSelectionHandler.prototype.updatePreviewPanelVisibility_ = function() {
self.hidingTimeout_ = setTimeout(function() { self.hidingTimeout_ = setTimeout(function() {
self.hidingTimeout_ = 0; self.hidingTimeout_ = 0;
setVisibility('hidden'); setVisibility('hidden');
fm.onResize_();
}, 250); }, 250);
}; };
var show = function() { var show = function() {
setVisibility('visible'); setVisibility('visible');
self.previewThumbnails_.textContent = ''; self.previewThumbnails_.textContent = '';
fm.onResize_();
}; };
var setVisibility = function(visibility) { var setVisibility = function(visibility) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment