(Note: I am checking this changeset in)
Change philip-20110613-bUb by philip@PHILIP-I7 on 2011-06-13 12:00:51
EDT
in /cygdrive/c/clients/laszlo/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: SWF10: Compensate for browser zoom when displaying html
component.
New Features:
Bugs Fixed: LPP-9956
Technical Reviewer: (pending)
QA Reviewer: mdemmon
Doc Reviewer: (pending)
Documentation:
Release Notes:
Overview:
For SWF apps, the html component would incorrectly resize itself if the
browser window was zoomed. This changeset fixes the issue when the
canvas uses the full size of the browser window (either width/height is
not specified, or is set to 100%).
A new attribute, trackbrowserzoom, has been added to the html component.
The default value is false which matches the existing behavior. When set
to true, a swf application will measure the amount of browzer zoom and
resize the html component to keep the window size constant.
Details:
For swf apps, browser zoom is measured by comparing canvas.width with
the actual width of the window (document.body.clientWidth).
Tests:
See test in jira. Run this application in swf10 and change the browser
zoom. The location and the size of the html component should not change.
The contents of the html component will change based upon the zoom.
Files:
M lps/components/extensions/html.lzx
M lps/includes/source/iframemanager.js
Changeset:
http://svn.openlaszlo.org/openlaszlo/patches/philip-20110613-bUb.tar