Fix bug with GL_SCISSOR_TEST.
Add static position update to layout process.
Move static rect calculation to position update handler.