Skip to content

Commit 28fff11

Browse files
committed
Fix lint errors and another pixel fix for updatemenus
1 parent 9ee47b1 commit 28fff11

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/components/updatemenus/draw.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,9 @@ function drawButtons(gd, gHeader, gButton, menuOpts) {
266266

267267
if(menuOpts.type === 'dropdown' && menuOpts.openreverse) {
268268
if(menuOpts.orientation === 'v') {
269-
y0 = -2 * constants.gapButtonHeader - constants.gapButton - menuOpts.openHeight;
269+
y0 = -constants.gapButtonHeader + constants.gapButton - menuOpts.openHeight;
270270
} else {
271-
x0 = -2 * constants.gapButtonHeader - constants.gapButton - menuOpts.openWidth;
271+
x0 = -constants.gapButtonHeader + constants.gapButton - menuOpts.openWidth;
272272
}
273273
}
274274

@@ -382,8 +382,6 @@ function styleOnMouseOut(item, menuOpts) {
382382

383383
// find item dimensions (this mutates menuOpts)
384384
function findDimenstions(gd, menuOpts) {
385-
var i;
386-
387385
menuOpts.width1 = 0;
388386
menuOpts.height1 = 0;
389387
menuOpts.heights = [];
@@ -499,8 +497,6 @@ function findDimenstions(gd, menuOpts) {
499497
b: menuOpts.totalHeight * ({top: 1, middle: 0.5}[yanchor] || 0),
500498
t: menuOpts.totalHeight * ({bottom: 1, middle: 0.5}[yanchor] || 0)
501499
});
502-
503-
console.log('menuOpts:', menuOpts);
504500
}
505501

506502
// set item positions (mutates posOpts)

0 commit comments

Comments
 (0)