loader: Viewport width is set to document width
authorYoumin Ha <youmin.ha@samsung.com>
Tue, 15 Jan 2013 01:34:20 +0000 (10:34 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Wed, 23 Jan 2013 11:03:56 +0000 (20:03 +0900)
commit7aad1da6d8145efde227df34a1134958746dc732
tree28920c134de14b396e2cba91efad13e8253cbfd7
parent44b5e80e6aa076bda59970c6ed52649e780cec87
loader: Viewport width is set to document width

When data-framework-viewport-width is set to screen-width,
the viewport was set to window.outerWidth. However, with web
simulator, webapps are put in the iframe, so the viewport size
needs to be set to document width. This patch sets the viewport
width to document.documentElement.clientWidth, as
document.documentElement actually means <html> element.

Change-Id: I4c1d4002e7d276ad274681afab484942e8069abf
src/loader/loader.js