Skip to content

Can CircularView be resized #2441

Discussion options

You must be logged in to vote

@jrobinso I just thought of an easier way to do this. You probably don't want to manually set the width, since there is a listener that will automatically adjust the width to the width of the view container. Adjusting the height should be sufficient. When you resize, you can set the bpPerPx to the minimum allowed. So setSize might look something like this:

function setSize(size) {
  const view = viewState.session.view
  view.setHeight(size)
  view.setBpPerPx(view.minBpPerPx)
}

Replies: 8 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@garrettjstevens
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jrobinso
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants