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

Unified Diff: chrome/browser/resources/settings/bluetooth_page/bluetooth_device_dialog.js

Issue 2009023003: MD Settings: make bluetooth dialog resize like other settings-dialogs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revive #dialogDeviceList for tests Created 4 years, 7 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/resources/settings/bluetooth_page/bluetooth_device_dialog.js
diff --git a/chrome/browser/resources/settings/bluetooth_page/bluetooth_device_dialog.js b/chrome/browser/resources/settings/bluetooth_page/bluetooth_device_dialog.js
index 7b410b0c33b6a542dd0f22d203acf840ea53bbda..f700878bf38254bd346678f34323608a805d1d43 100644
--- a/chrome/browser/resources/settings/bluetooth_page/bluetooth_device_dialog.js
+++ b/chrome/browser/resources/settings/bluetooth_page/bluetooth_device_dialog.js
@@ -33,6 +33,8 @@ settings.BluetoothAddDeviceBehavior = {
},
},
+ observers: ['deviceListChanged_(deviceList.*)'],
+
/** @private */
adapterStateChanged_: function() {
if (!this.adapterState.powered)
@@ -325,6 +327,11 @@ Polymer({
dialogType: String,
},
+ /** @private */
+ deviceListChanged_: function(e) {
+ this.$.dialog.notifyResize();
+ },
+
/**
* @param {string} dialogType
* @return {string} The title of for that |dialogType|.

Powered by Google App Engine
This is Rietveld 408576698