1. If I call zoom() on a drawPane, firefox does not show any difference. If I run the same code on IE9 or Chrome, the zooming works. this can be reproduced by simply running the SmartGWT showcase zooming and panning demo.
2. Assuming I am using Chrome where the zooming works, after I set my zoom level to 2 for double magnification, how do I control the panning of the DrawItems inside the DrawPane? I queried the left and top of one of my drawitems and they did not change after the zoom. Therefore, the (0,0) position of a draw item is relative to the DrawPane container. That makes sense. So to pan, I need to move the entire DrawPane around? How do I find out what the top left corner of my Drawpane is after the zoom? Do I use getScrollLeft and getScrollTop? I see a viewport width and height but not a viewport offset x and y. I must be missing something. After the zoom, the drawitems are bigger and centered on the drawpane with the outer portions off the screen. There must be something that controls the offset of the drawitems on the drawpane?
2. Assuming I am using Chrome where the zooming works, after I set my zoom level to 2 for double magnification, how do I control the panning of the DrawItems inside the DrawPane? I queried the left and top of one of my drawitems and they did not change after the zoom. Therefore, the (0,0) position of a draw item is relative to the DrawPane container. That makes sense. So to pan, I need to move the entire DrawPane around? How do I find out what the top left corner of my Drawpane is after the zoom? Do I use getScrollLeft and getScrollTop? I see a viewport width and height but not a viewport offset x and y. I must be missing something. After the zoom, the drawitems are bigger and centered on the drawpane with the outer portions off the screen. There must be something that controls the offset of the drawitems on the drawpane?
Comment