Skip to content

Commit

Permalink
tweaks to scrollbar behaviour of depth and instrument watch
Browse files Browse the repository at this point in the history
  • Loading branch information
ettec committed Oct 31, 2020
1 parent 6efc7d9 commit 5a0e341
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ export default class InstrumentListingWatch extends Component<InstrumentListingW
rowSelection={'multiple'}
getRowNodeId={(data: ListingWatchView) => { return data?.listingId?.toString() }}
onSelectionChanged={this.onSelectionChanged}
domLayout='autoHeight'
rowDragManaged={true}

frameworkComponents={{
Expand Down
2 changes: 1 addition & 1 deletion react/opentp-client/src/components/Login/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default class Login extends React.Component<Props, State> {
}

if (this.serverUrl.endsWith("localhost:3000")) {
this.serverUrl = "http://127.0.0.1:31441" // for local dev, change this to point at your otp services cluster
this.serverUrl = "http://127.0.0.1:32173" // for local dev, change this to point at your otp services cluster
}

log.info("Connecting to services at:" + this.serverUrl)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ export default class MarketDepth extends Component<MarketDepthProps, MarketDepth
this.openSellDialog = this.openSellDialog.bind(this);
this.onGridReady = this.onGridReady.bind(this)
this.onSelectionChanged = this.onSelectionChanged.bind(this)
this.depth = new MarketDepthView(10, this.listingService, () => {
let displayedDepth = 10
this.depth = new MarketDepthView(displayedDepth, this.listingService, () => {
if (this.gridApi) {
this.gridApi.refreshCells()
}
Expand Down Expand Up @@ -239,7 +240,7 @@ export default class MarketDepth extends Component<MarketDepthProps, MarketDepth
return (
<div style={{ width: "100%", height: "100%", display: 'flex', flexDirection: 'column', alignItems: "centre" }}>
<div className="bp3-dark" style={{ display: 'flex', flexDirection: 'row', paddingTop: 0, alignItems: "left" }}>
<div style={{ flexGrow: 1, flexDirection: 'row', display: 'flex' }}>
<div style={{ flexGrow: 1}}>
<Button icon={this.state.locked ? "lock" : "unlock"} onClick={this.toggleLock}>{this.getListingLabel()}</Button>
<span style={{ minWidth: 40 }}></span>
<Button text="Buy" onClick={this.openBuyDialog} disabled={!this.state.selectedIdx}
Expand All @@ -264,7 +265,6 @@ export default class MarketDepth extends Component<MarketDepthProps, MarketDepth
rowSelection={'single'}
getRowNodeId={(data: DepthLine) => { return data?.idx }}
onSelectionChanged={this.onSelectionChanged}
domLayout='autoHeight'
suppressLoadingOverlay={true}
rowDragManaged={true}
defaultColDef={{
Expand Down

0 comments on commit 5a0e341

Please sign in to comment.