Skip to content

Commit cb965d4

Browse files
yeion7SaraVieira
authored andcommitted
show popover (codesandbox#2512)
1 parent 14d4304 commit cb965d4

File tree

1 file changed

+5
-2
lines changed
  • packages/app/src/app/components/ContextMenu

1 file changed

+5
-2
lines changed

packages/app/src/app/components/ContextMenu/index.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,13 @@ export class ContextMenu extends React.PureComponent<Props, State> {
228228
style={{
229229
left: left
230230
? x
231-
: x - (typeof width === 'string' ? 0 : width),
231+
: x - (typeof width === 'string' ? 194 : width),
232232
top: down
233233
? y
234-
: y - (typeof height === 'string' ? 0 : height),
234+
: y -
235+
(typeof height === 'string'
236+
? items.length * 81
237+
: height),
235238
opacity,
236239
height,
237240
}}

0 commit comments

Comments
 (0)