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

Unified Diff: third_party/WebKit/Source/devtools/front_end/color_picker/Spectrum.js

Issue 2980063002: DevTools: allow colorpicker to scroll horizontally (Closed)
Patch Set: no important Created 3 years, 5 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: third_party/WebKit/Source/devtools/front_end/color_picker/Spectrum.js
diff --git a/third_party/WebKit/Source/devtools/front_end/color_picker/Spectrum.js b/third_party/WebKit/Source/devtools/front_end/color_picker/Spectrum.js
index f45965c3025ed26f187936715a0d2dd789dd8ab8..0869c213a3b21eadbe58fb01e9b35843c95d96c9 100644
--- a/third_party/WebKit/Source/devtools/front_end/color_picker/Spectrum.js
+++ b/third_party/WebKit/Source/devtools/front_end/color_picker/Spectrum.js
@@ -115,7 +115,7 @@ ColorPicker.Spectrum = class extends UI.VBox {
UI.installDragHandle(
this._colorElement, dragStart.bind(this, positionColor.bind(this)), positionColor.bind(this), null, 'default');
- this.element.classList.add('palettes-enabled');
+ this.element.classList.add('palettes-enabled', 'flex-none');
luoe 2017/07/18 20:49:08 This component has a shadowRoot, and adding 'flex:
/** @type {!Map.<string, !ColorPicker.Spectrum.Palette>} */
this._palettes = new Map();
this._palettePanel = this.contentElement.createChild('div', 'palette-panel');

Powered by Google App Engine
This is Rietveld 408576698