HISE Logo Forum
    • Categories
    • Register
    • Login

    Viewport starts all the way down

    Scheduled Pinned Locked Moved Unsolved General Questions
    13 Posts 3 Posters 388 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.
    • T
      treynterrio
      last edited by treynterrio

      Hi there, I have a viewport with a few sliders and buttons in my plugin and every time I open the panel where the viewport is located, it is scrolled all the way down. Actually, it should start at the top and not from bottom to top. :beaming_face_with_smiling_eyes:

      I don't use a script its only the Panel and a Viewport inside

      d.healeyD 1 Reply Last reply Reply Quote 0
      • T treynterrio marked this topic as a question on
      • d.healeyD
        d.healey @treynterrio
        last edited by

        @treynterrio Check the viewport's viewPositionY property

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        T 1 Reply Last reply Reply Quote 0
        • T
          treynterrio @d.healey
          last edited by

          @d-healey I tried this:

          inline function onViewport1Control(component, value)
          {
          Viewport1.viewPositionY = 0;
          };
          Content.getComponent("Viewport1").setControlCallback(onViewport1Control);
          

          but it still starts on the bottom

          LindonL d.healeyD 2 Replies Last reply Reply Quote 0
          • LindonL
            Lindon @treynterrio
            last edited by Lindon

            @treynterrio try it in the call back that is doing this:

            "every time I open the panel where the viewport is"

            HISE Development for hire.
            www.channelrobot.com

            1 Reply Last reply Reply Quote 1
            • d.healeyD
              d.healey @treynterrio
              last edited by

              @treynterrio said in Viewport starts all the way down:

              Viewport1.viewPositionY = 0;

              That is not valid code.

              Take a look in the interface designer property editor, is the viewPositionY set to 0?

              Libre Wave - Freedom respecting instruments and effects
              My Patreon - HISE tutorials
              YouTube Channel - Public HISE tutorials

              T 1 Reply Last reply Reply Quote 0
              • T
                treynterrio @d.healey
                last edited by

                @d-healey yes its on 0

                d.healeyD 1 Reply Last reply Reply Quote 0
                • d.healeyD
                  d.healey @treynterrio
                  last edited by

                  @treynterrio Can you share a snippet that demonstrates the issue?

                  Libre Wave - Freedom respecting instruments and effects
                  My Patreon - HISE tutorials
                  YouTube Channel - Public HISE tutorials

                  T 1 Reply Last reply Reply Quote 0
                  • T
                    treynterrio @d.healey
                    last edited by

                    @d-healey I think I've to send the whole project then I just seen that the Y is now on 1 all the time before I pasted in the code above it was on 0 the whole time

                    d.healeyD 1 Reply Last reply Reply Quote 0
                    • d.healeyD
                      d.healey @treynterrio
                      last edited by

                      Search your script for viewPositionY and see if you are setting it somewhere.

                      Libre Wave - Freedom respecting instruments and effects
                      My Patreon - HISE tutorials
                      YouTube Channel - Public HISE tutorials

                      T 1 Reply Last reply Reply Quote 0
                      • T
                        treynterrio @d.healey
                        last edited by

                        @d-healey its nowhere in my script the viewport is 500x100 and the panel inside is 490x200 I don't know If this problem was there before

                        d.healeyD 1 Reply Last reply Reply Quote 0
                        • d.healeyD
                          d.healey @treynterrio
                          last edited by

                          @treynterrio Make a new minimal project that demonstrates the issue and post the snippet here

                          Libre Wave - Freedom respecting instruments and effects
                          My Patreon - HISE tutorials
                          YouTube Channel - Public HISE tutorials

                          T 1 Reply Last reply Reply Quote 0
                          • T
                            treynterrio @d.healey
                            last edited by

                            @d-healey the problem is gone as soon as I choose a preset from the preset browser. Is there a way to choose one straight? I tried the default user preset in settings but this doesn't work. My default is preset is already - Default but I've to click on the next preset button to choose it

                            d.healeyD 1 Reply Last reply Reply Quote 0
                            • d.healeyD
                              d.healey @treynterrio
                              last edited by

                              @treynterrio Without seeing your code I can't give a useful answer as I don't know what the cause of the issue is.

                              Libre Wave - Freedom respecting instruments and effects
                              My Patreon - HISE tutorials
                              YouTube Channel - Public HISE tutorials

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

                              14

                              Online

                              1.7k

                              Users

                              11.8k

                              Topics

                              103.2k

                              Posts