[Javascript] Strange problem with getting a <table> tag's .offsetHeight property.

Troy III Ajnej trojani2000 at hotmail.com
Wed Oct 4 14:19:46 CDT 2006


I might be wrong but
I suspect that this visual mismatch is being caused by pixel aspect ratio ?!
I have a hunch that widescreen display is being achieved by the change on PAR.
 
Try multiplying the offsetlHeight with const.val. of: 1.333333333333 and see what comes up on wide screen monitor.
 
 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                         Troy III                           progressive art enterprise~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



> Date: Tue, 3 Oct 2006 11:39:49 +0100> From: javascript at mattbarton.org> To: javascript at LaTech.edu> Subject: [Javascript] Strange problem with getting a <table> tag's .offsetHeight property. > > Hi,> > I have a function in my intranet application which over-rides the > browser's context menu, and creates it's own.  It displays this context > menu in a popup created with the window.createPopup() method.  It does > this so that the popup can float over frame boundaries, and even the > browser window boundaries.> > It first shows the popup, fills it with html generated for the menu, > grabs the offsetHeight property of a containing table, then hides the > popup, and re-shows it dimensioned correctly for the table it contains. >   This is because popups created with window.createPopup() cannot be > resized.> > This works fine for all of my users, apart from a couple of new laptops > that use widescreen displays, and where the users have a larger than > normal DPI setting on their displays.  In these cases the offsetHeight > property is returning a value a good deal smaller than it should be.> > Two different systems, running the same OS (WinXP, SP2), the same > browser (IE6), the same DPI (133), one with a widescreen display, and > one with a regular display, return different values for offsetHeight > when calculating the height of identical tables.  The only difference I > can see between the systems is the widescreen-ness of the monitor.> > If the user with the widescreen laptop changes his DPI to the standard > 96, it behaves normally, returning values consistent with the regular > systems.> > This is observable on all the widescreen laptops we have.> > Anyone got any idea at all?> > Matt Barton> _______________________________________________> Javascript mailing list> Javascript at LaTech.edu> https://lists.LaTech.edu/mailman/listinfo/javascript
_________________________________________________________________
Share your special moments by uploading 500 photos per month to Windows Live Spaces 
http://clk.atdmt.com/MSN/go/msnnkwsp0100000001msn/direct/01/?href=http://spaces.live.com/signup.aspx 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20061004/09bd127c/attachment.htm>


More information about the Javascript mailing list