File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -631,6 +631,7 @@ export class CodeSnippetDisplay extends React.Component<
631
631
) : void {
632
632
const target = event . target as HTMLElement ;
633
633
let top : number ;
634
+ console . log ( target . tagName ) ;
634
635
if ( target . tagName === 'path' ) {
635
636
top = target . getBoundingClientRect ( ) . top + 10 ;
636
637
} else {
@@ -640,8 +641,10 @@ export class CodeSnippetDisplay extends React.Component<
640
641
top -= 120 ;
641
642
}
642
643
const leftAsString =
643
- target . getBoundingClientRect ( ) . left . toString ( 10 ) + 'px' ;
644
+ ( target . parentElement . style . left + event . pageX ) . toString ( ) + 'px' ;
645
+
644
646
const topAsString = top . toString ( 10 ) + 'px' ;
647
+
645
648
document . documentElement . style . setProperty (
646
649
'--more-options-top' ,
647
650
topAsString
You can’t perform that action at this time.
0 commit comments