Closed kakjzi closed 1 year ago
hi
The drop down menu position in the pivot table was not showing up correctly.
However, I've solved this problem and I'll share it in case anyone else needs help.
The solution is simple, you just need to fix some parts of your pivot.js file
Before
triangleLink = $("<span>").addClass('pvtTriangle').html(" ▾").bind("click", function(e) { var left, ref2, top; ref2 = $(e.currentTarget).position(), left = ref2.left, top = ref2.top; return valueList.css({ left: left + 10, top: top + 10 }).show(); });
After
triangleLink = $("<span>").addClass('pvtTriangle').html(" ▾").bind("click", function(e) { var left, ref2, top; ref2 = $(e.currentTarget).offset(), left = ref2.left, top = ref2.top; // <--change return valueList.css({ left: left + 10, top: top + $(e.currentTarget).outerHeight() + 10 // <--change }).show(); });
Thanks for sharing that. I am not a JS developer expert so I can not help that much, however, it will be great if we try to get back live this repo again.
hi
The drop down menu position in the pivot table was not showing up correctly.
However, I've solved this problem and I'll share it in case anyone else needs help.
The solution is simple, you just need to fix some parts of your pivot.js file
Before
After