File tree Expand file tree Collapse file tree 1 file changed +6
-22
lines changed Expand file tree Collapse file tree 1 file changed +6
-22
lines changed Original file line number Diff line number Diff line change @@ -629,17 +629,9 @@ export default class AngularColorPickerController {
629629 if ( ! this . options . round ) {
630630 el = angular . element ( this . $element [ 0 ] . querySelector ( '.color-picker-grid .color-picker-picker' ) ) ;
631631
632- if ( this . options . horizontal ) {
633- el . css ( {
634- 'left' : 0 ,
635- 'top' : ( this . pickerDimensions . height * this . saturationPos / 100 ) + 'px'
636- } ) ;
637- } else {
638- el . css ( {
639- 'left' : ( this . pickerDimensions . width * this . saturationPos / 100 ) + 'px' ,
640- 'top' : 0
641- } ) ;
642- }
632+ el . css ( {
633+ 'left' : ( this . pickerDimensions . height * this . saturationPos / 100 ) + 'px'
634+ } ) ;
643635 }
644636
645637 el = angular . element ( this . $element [ 0 ] . querySelector ( '.color-picker-saturation .color-picker-slider' ) ) ;
@@ -663,17 +655,9 @@ export default class AngularColorPickerController {
663655 if ( ! this . options . round ) {
664656 el = angular . element ( this . $element [ 0 ] . querySelector ( '.color-picker-grid .color-picker-picker' ) ) ;
665657
666- if ( this . options . horizontal ) {
667- el . css ( {
668- 'left' : ( this . pickerDimensions . width * this . lightnessPos / 100 ) + 'px' ,
669- 'top' : 0
670- } ) ;
671- } else {
672- el . css ( {
673- 'left' : 0 ,
674- 'top' : ( this . pickerDimensions . height * this . lightnessPos / 100 ) + 'px'
675- } ) ;
676- }
658+ el . css ( {
659+ 'top' : ( this . pickerDimensions . width * this . lightnessPos / 100 ) + 'px'
660+ } ) ;
677661 }
678662
679663 el = angular . element ( this . $element [ 0 ] . querySelector ( '.color-picker-lightness .color-picker-slider' ) ) ;
You can’t perform that action at this time.
0 commit comments