Skip to content

Commit

Permalink
chore: position below context pad
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Apr 22, 2024
1 parent 4da29d6 commit 5fc98da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion colors/ColorContextPadProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,15 @@ ColorContextPadProvider.prototype._createPopupAction = function(elements) {

function getStartPosition(contextPad, elements) {

var Y_OFFSET = 5;

var pad = contextPad.getPad(elements).html;

var padRect = pad.getBoundingClientRect();

var pos = {
x: padRect.left,
y: padRect.top,
y: padRect.bottom + Y_OFFSET
};

return pos;
Expand Down

0 comments on commit 5fc98da

Please sign in to comment.