diff --git a/modules/ui/combobox.js b/modules/ui/combobox.js index 2a042f524..1a11fced9 100644 --- a/modules/ui/combobox.js +++ b/modules/ui/combobox.js @@ -389,12 +389,13 @@ export function uiCombobox(context, klass) { .order(); var node = attachTo ? attachTo.node() : input.node(); + var containerRect = container.node().getBoundingClientRect(); var rect = node.getBoundingClientRect(); combo - .style('left', (rect.left + 5) + 'px') + .style('left', (rect.left + 5 - containerRect.left) + 'px') .style('width', (rect.width - 10) + 'px') - .style('top', rect.height + rect.top + 'px'); + .style('top', (rect.height + rect.top - containerRect.top) + 'px'); }