Skip to content

Commit

Permalink
display images onload
Browse files Browse the repository at this point in the history
  • Loading branch information
driusan committed Jul 22, 2023
1 parent 199501b commit 9247aef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ export class Viewer extends React.Component {
}

populateWorldPosAttribute = (gl, worldattrib, plane, worldbuffer, crosshairsattrib, crosshairsbuffer) => {
if (!gl) return;

const xsize = this.props.headers.xspace.space_length;
const ysize = this.props.headers.yspace.space_length;
Expand Down Expand Up @@ -575,6 +576,8 @@ export class Viewer extends React.Component {
});
break;
}

this.refreshAllPanels();
return;
}
}

0 comments on commit 9247aef

Please sign in to comment.