You are currently offline, waiting for your internet to reconnect

The Vwa.VwaPage.getPosition function returns the same value regardless of the position of the page in the viewport

SYMPTOMS
When you use the Vwa.VwaPage.getPosition function in JavaScript to return the position of a page in Microsoft SharePoint Server 2010, Vwa.VwaPage.getPosition returns the same value regardless of the position of the page in the view port. The function always returns the following value:

(-viewSize.width/2, -viewSize.height/2)
WORKAROUND
Programmers can work around this issue by accessing internal objects to calculate the expected result. For example, programmers can use code that resembles the following:

var viewPosition = vwa._control._renderingArea.getViewPosition();
var viewSize = vwa._control._renderingArea.getViewSize();
var pagePosition = {};
pagePosition.x = viewPosition.x - Math.ceil(viewSize.width / 2);
pagePosition.y = viewPosition.y - Math.ceil(viewSize.height / 2);
MORE INFORMATION
Microsoft has confirmed that this is an issue in the Visio Services API.

For more information, visit the following Microsoft Developer Network (MSDN) website:
vso2010 vgs2010
Properties

Article ID: 2414992 - Last Review: 02/12/2011 06:01:00 - Revision: 2.0

Visio Services in Microsoft SharePoint Server 2010, Microsoft SharePoint Server 2010

  • KB2414992
Feedback