Forum
    • Categories
    • Register
    • Login

    Viewport - set(""viewPositionY")

    Scheduled Pinned Locked Moved General Questions
    8 Posts 2 Posters 40 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • LindonL
      Lindon
      last edited by

      OK so I have viewport with a holding-panel inside it, that panel has a variable number of sub-panels being displayed....

      So I cant get the Viewport to respond to viewport.set("viewPosition",1), except on init...

      so first time thru - it sets the viewport to the end, but if I change the number of sub-panels displayed, and thus change the size of the holding-panel, then the viewport shoots back to the top and wont act on any ViewPositionY I send it as part of the holding panels repaint function...

      What am I doing wrong?

      HISE Development for hire.
      www.channelrobot.com

      LindonL 1 Reply Last reply Reply Quote 0
      • LindonL
        Lindon @Lindon
        last edited by Lindon

        @Lindon so it appears to be a timing issue....if I add a button to do this positionY stuff that works - so is there a listener for the viewport rejigging itself?

        I cant find anything in the Broadcaster wizard that looks like it can be applied...but Im a complete novice in there...

        HISE Development for hire.
        www.channelrobot.com

        David HealeyD 1 Reply Last reply Reply Quote 0
        • David HealeyD
          David Healey @Lindon
          last edited by David Healey

          @Lindon I just took a look at how I'm doing this and seems a crude timer is what I'm using

              panel.setTimerCallback(function()
              {
                  updateViewportPosition(this);
          	    this.stopTimer();
              });
          
              panel.startTimer(500);
          

          Free HISE Bootcamp Full Course for beginners.
          YouTube Channel - Public HISE tutorials
          My Patreon - HISE tutorials

          LindonL 1 Reply Last reply Reply Quote 0
          • LindonL
            Lindon @David Healey
            last edited by

            @David-Healey thanks yeah - I wonder how dependent it is upon how many sub panels I m using at any given time....

            HISE Development for hire.
            www.channelrobot.com

            David HealeyD 1 Reply Last reply Reply Quote 0
            • David HealeyD
              David Healey @Lindon
              last edited by

              @Lindon are you using child panels?

              Free HISE Bootcamp Full Course for beginners.
              YouTube Channel - Public HISE tutorials
              My Patreon - HISE tutorials

              LindonL 1 Reply Last reply Reply Quote 0
              • LindonL
                Lindon @David Healey
                last edited by Lindon

                @David-Healey child of the holder-panel - yes, a lot of them - they are all pre-declared and set up, so Im not sure they will have any effect here...hoping not anyway...

                HISE Development for hire.
                www.channelrobot.com

                David HealeyD 1 Reply Last reply Reply Quote 0
                • David HealeyD
                  David Healey @Lindon
                  last edited by

                  @Lindon I meant the dynamic child panel feature, but either should work fine

                  Free HISE Bootcamp Full Course for beginners.
                  YouTube Channel - Public HISE tutorials
                  My Patreon - HISE tutorials

                  LindonL 1 Reply Last reply Reply Quote 0
                  • LindonL
                    Lindon @David Healey
                    last edited by

                    @David-Healey nope there are no dynamic panels any more...

                    HISE Development for hire.
                    www.channelrobot.com

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post

                    16

                    Online

                    2.2k

                    Users

                    13.6k

                    Topics

                    118.0k

                    Posts