Announcement

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

    DrawPane zoom messing up the view

    You can see this behavior on the Zoom & Pan showcase https://smartclient.com/smartgwt/showcase/#zoom_and_pan

    Set the zoom to 1 and move the pane so you can see the Line and Sector:
    Click image for larger version

Name:	start.png
Views:	11
Size:	29.5 KB
ID:	274415

    Now, change the zoom to 2 and without doing anything else, you are looking at the Curve:
    Click image for larger version

Name:	zoom.png
Views:	10
Size:	28.1 KB
ID:	274416

    This is undesirable. How do I keep the view in the same place when I zoom in and out?

    #2
    The zoom and pan methods do what they say they do to the viewport; what you are looking for is a combination of zooming and panning.

    You should probably just create a single slider and do the coordinate math to apply the combination of change in zoom and position that you want.

    Comment


      #3
      Originally posted by Isomorphic View Post
      You should probably just create a single slider and do the coordinate math to apply the combination of change in zoom and position that you want
      OK, I will look into that.

      Comment

      Working...
      X