Skip to content

Commit

Permalink
Fix calculation of SelectComponent dropdown bottom (#14381)
Browse files Browse the repository at this point in the history
Signed-off-by: Luke Zhang <[email protected]>
  • Loading branch information
Luke-zhang-mchp authored Nov 27, 2024
1 parent 3f2f672 commit 41ba18e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/browser/widgets/select-component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ export class SelectComponent extends React.Component<SelectComponentProps, Selec

return <div key="dropdown" className="theia-select-component-dropdown" style={{
top: invert ? 'none' : this.state.dimensions.bottom,
bottom: invert ? shellArea.top + shellArea.height - this.state.dimensions.top : 'none',
bottom: invert ? shellArea.top - this.state.dimensions.top : 'none',
left: this.alignLeft ? this.state.dimensions.left : 'none',
right: this.alignLeft ? 'none' : shellArea.width - this.state.dimensions.right,
width: Math.min(Math.max(this.state.dimensions.width, this.optimalWidth), maxWidth),
Expand Down

0 comments on commit 41ba18e

Please sign in to comment.