Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    #16
    I changed the build to use smartgwt-lgpl 13.1-p20241207, cleared my cache and rebooted the server. The lines still don't disappear.

    I see the render is not a function error in my console as well, I am not sure what that means. I will do some research.

    Comment


      #17
      For clarity, you can confirm that this is working in general like this:

      1) go to https://smartclient.com/smartgwtee/s...e/#diagramming
      2) note the first vertical line under "Patient Arrives"
      2) in the browser console, run DrawLine3.erase() to see that line cleared

      Comment


        #18
        Originally posted by Isomorphic View Post
        you can confirm that this is working in general like this
        Using Chrome, the line disappeared so it is not my browser.

        Do I have my html and gwt.xml files correct? I am attaching them.
        I can't imagine it is the server, that is just normal Tomcat with an Apache proxy.
        Attached Files

        Comment


          #19
          Did you add the line of code that calls a method called "render()" and fails in the browser? If so, try getting rid of the call to render(). In SGWT, you just call draw(), and your test code was already doing that. That should fix the browser error and might fix the other issues.

          Comment


            #20
            Actually, it's become clear what's happening - there are two drawPanes being created in the same place, because you've added a custom <script> block in your test.html file that creates a new ZIndexTest, but that file already loads your compiled project, which also creates and draws a DrawPane. The DrawPane in front is getting the click events, and it's lines are being hidden - but the ones in the DrawPane behind are showing through.

            You should be able to fix it by just getting rid of the custom script block in your test.html file.

            Comment


              #21
              Originally posted by Isomorphic View Post
              Did you add the line of code that calls a method called "render()"
              I had a render call in my html. I removed it.
              Attached Files

              Comment


                #22
                Originally posted by Isomorphic View Post
                You should be able to fix it by just getting rid of the custom script block in your test.html file.
                Ahh. Got it. I was following a guide on the Internet and that is what it had.
                The lines disappear now. Thank for your help!

                Comment

                Working...
                X