Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Set default visual viewport size in custom visual

Is there a way to set the defaul viewport size when start a custom visual?  Thanks.

6 Replies

    • cboneill0099's avatar
      cboneill0099
      Helper I

      Anyone know if there has been any movement on this?  Looks like the idea was accepted a year ago.

  • taghos's avatar
    taghos
    Microsoft Employee

    Just wondering, if there has been an update on the same?

    I want to set a fixed width and height by default for a custom visual I am developing. Currently in I try to do options.viewport.width=800 in say Visual's constructor or update method, it's not respecting it.

    • dm-p's avatar
      dm-p
      Super User

      Hi taghos - there have been no new features added to the SDK for 9-10 months, so this is still not possible. The only manipulation of the viewport in the SDK is to maximise it to full screen mode by using switchFocusModeState on the visual host object.

      Your best bet is to contact the custom visuals team - [email protected] - if you need a direct answer.

      Regards,

      Daniel