Deprecated: Function set_magic_quotes_runtime() is deprecated in /home4/mfoster/public_html/cb/forums/include/common.php on line 62

Warning: Cannot modify header information - headers already sent by (output started at /home4/mfoster/public_html/cb/forums/include/common.php:62) in /home4/mfoster/public_html/cb/forums/header.php on line 31

Warning: Cannot modify header information - headers already sent by (output started at /home4/mfoster/public_html/cb/forums/include/common.php:62) in /home4/mfoster/public_html/cb/forums/header.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at /home4/mfoster/public_html/cb/forums/include/common.php:62) in /home4/mfoster/public_html/cb/forums/header.php on line 33

Warning: Cannot modify header information - headers already sent by (output started at /home4/mfoster/public_html/cb/forums/include/common.php:62) in /home4/mfoster/public_html/cb/forums/header.php on line 34
Cross-Browser.com / [xWidth, xHeight] element has no size with display:none

Cross-Browser.com

X Library Forums

You are not logged in.

Announcement

New user registration is currently disabled.

  • Index
  •  » X Library
  •  » [xWidth, xHeight] element has no size with display:none

#1 November 24, 2010 1:00:35 pm

MikeFoster
Administrator
From: Alabama, USA
Registered: April 27, 2007
Posts: 874
Website

[xWidth, xHeight] element has no size with display:none

ericj gives us a heads-up on a "gotcha" that is important to note.

When an element has "display:none" xWidth and xHeight may return 0. We've seen this in Firefox and Chrome. I guess it just means the browser considers the element to have no size when it has "display:none". Note that xWidth and xHeight return "offsetWidth" and "offsetHeight", which are the properties which have this behavior. I'm not sure what getComputedStyle would return.

This issue needs more testing.

Offline

 
  • Index
  •  » X Library
  •  » [xWidth, xHeight] element has no size with display:none

Board footer

Powered by PunBB 1.2.15
Copyright © 2002–2005 Rickard Andersson

Expand Restore Select Format Eval Load