kuza55 / csexwb2

Automatically exported from code.google.com/p/csexwb2
0 stars 0 forks source link

JavaScript running inside demo app reports incorrect browser Y dimension #39

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run the demo Application
2. Browse to http://javascriptkit.com/javatutors/static2.shtml
3. Look at the line "Your browser's dimensions are: 1477 by 100"
4. The Y dimension for the browser dimensions reported by JavaScript is
wrong. The X dimension works fine.

What is the expected output? What do you see instead?
Expect to see 1477 by ~500 (or at least some other larger number than 100
for the Y dimension). The Y dimension for the browser reports as 100 all
the time, and sometimes reports as 118 for smaller window sizes.

What are the OS and IE versions?
Windows XP SP2
IE 6.0.2900.2180.xpsp_sp2_gdr.070227-2254

What version of the product are you using?
csExWBv2.0 (csExWBv2.0_Includes_ComUtilities.zip from April 11)

Original issue reported on code.google.com by alastair...@gmail.com on 8 May 2008 at 5:03

GoogleCodeExporter commented 8 years ago
There is a problem with the javascript in the supplied url. I tested the url 
with IE6
+ 7 winXP pro sp2 and Vista. in both cases, the value of Y is being reported as 
130
which is the incorrect value.

This url may be of some assistance:
Measuring Element Dimension and Location
http://msdn.microsoft.com/en-us/library/ms530302.aspx

Using Firefox, the values of X and Y are being reported correctly.

Please note that this control, IE, ... are wrappers for webbrowser control. It 
is a
good practice to test such urls with IE first to make sure that the issue is not
related to Webbrowser.

MH

Original comment by mehr...@gmail.com on 8 May 2008 at 1:29