Added a new function that return the current viewport value

return the current viewport value