Commit f237e26d authored by yoshiki@chromium.org's avatar yoshiki@chromium.org

[Files.app] Remove the margin of CWS widget

The margin of CWS widget on the server has been removed. Thus, we remove the corresponding margin on Files.app side as well.

BUG=none
TEST=manually tested
R=hirono@chromium.org

Review URL: https://codereview.chromium.org/23983015

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221993 0039d316-1c4b-4281-b951-d872f2087c98
parent 51e8fd92
...@@ -22,13 +22,6 @@ var WEBVIEW_WIDTH = 735; ...@@ -22,13 +22,6 @@ var WEBVIEW_WIDTH = 735;
*/ */
var WEBVIEW_HEIGHT = 480; var WEBVIEW_HEIGHT = 480;
/**
* The mergin inside the widget (in pixel).
* @type {number}
* @const
*/
var WIDGET_MARGIN = 8;
/** /**
* The widget of the spinner box (in pixel). * The widget of the spinner box (in pixel).
* @type {number} * @type {number}
...@@ -328,15 +321,11 @@ SuggestAppsDialog.prototype.onWidgetLoaded_ = function(event) { ...@@ -328,15 +321,11 @@ SuggestAppsDialog.prototype.onWidgetLoaded_ = function(event) {
this.webviewContainer_.classList.add('loaded'); this.webviewContainer_.classList.add('loaded');
this.state_ = SuggestAppsDialog.State.INITIALIZED; this.state_ = SuggestAppsDialog.State.INITIALIZED;
this.webviewContainer_.style.width = this.webviewContainer_.style.width = WEBVIEW_WIDTH + 'px';
(WEBVIEW_WIDTH + WIDGET_MARGIN * 2) + 'px'; this.webviewContainer_.style.height = WEBVIEW_HEIGHT + 'px';
this.webviewContainer_.style.height =
(WEBVIEW_HEIGHT + WIDGET_MARGIN * 2) + 'px';
this.webview_.style.width = this.webview_.style.width = WEBVIEW_WIDTH + 'px';
(WEBVIEW_WIDTH + WIDGET_MARGIN * 2) + 'px'; this.webview_.style.height = WEBVIEW_HEIGHT + 'px';
this.webview_.style.height =
(WEBVIEW_HEIGHT + WIDGET_MARGIN * 2) + 'px';
this.webview_.focus(); this.webview_.focus();
}; };
......
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