Skip to content

Commit

Permalink
Fix calculation of SelectComponent dropdown bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke-zhang-mchp committed Oct 31, 2024
1 parent 808de0b commit d7c1f1d
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 d7c1f1d

Please sign in to comment.