Commit e1a527a8 by Johannes Schill Committed by Torkel Ödegaard

ux: Fix color picker positioning when scrolled down to the bottom of a page (#10258) (#10271)

parent dd2192cc
...@@ -57,7 +57,7 @@ function popoverSrv($compile, $rootScope, $timeout) { ...@@ -57,7 +57,7 @@ function popoverSrv($compile, $rootScope, $timeout) {
openOn: options.openOn, openOn: options.openOn,
hoverCloseDelay: 200, hoverCloseDelay: 200,
tetherOptions: { tetherOptions: {
constraints: [{to: 'scrollParent', attachment: "none both"}] constraints: [{to: 'scrollParent', attachment: 'together'}]
} }
}); });
...@@ -79,3 +79,4 @@ function popoverSrv($compile, $rootScope, $timeout) { ...@@ -79,3 +79,4 @@ function popoverSrv($compile, $rootScope, $timeout) {
} }
coreModule.service('popoverSrv', popoverSrv); coreModule.service('popoverSrv', popoverSrv);
...@@ -53,7 +53,8 @@ module.directive('graphLegend', function(popoverSrv, $timeout) { ...@@ -53,7 +53,8 @@ module.directive('graphLegend', function(popoverSrv, $timeout) {
$timeout(function() { $timeout(function() {
popoverSrv.show({ popoverSrv.show({
element: el[0], element: el[0],
position: 'bottom center', position: 'bottom left',
targetAttachment: 'top left',
template: '<series-color-picker series="series" onToggleAxis="toggleAxis" onColorChange="colorSelected">' + template: '<series-color-picker series="series" onToggleAxis="toggleAxis" onColorChange="colorSelected">' +
'</series-color-picker>', '</series-color-picker>',
openOn: 'hover', openOn: 'hover',
......
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