[ 2 posts ]

David Rueter

  • Username: drueter
  • Joined: Tue Oct 13, 2009 6:40 pm
  • Posts: 14
  • Offline
  • Profile

Height in Chrome excludes horiz scrollbar?

Post Posted: Mon Jan 25, 2010 8:01 am
+0-
Given a <div> that has a horizontal scrollbar, .getStyle("height") returns a value inclusive of the scrollbar in Firefox and IE, but returns an value exclusive of the scrollbar in Chrome.

1) Is this as designed? (I thought / hoped that YUI would normalize browser implementation differences for me.)

2) In certain cases involving nested div's in Chrome, getComputedStyle("height") and getStyle("height") return different results--where getComputedStyle("height") excludes the scrollbar and getStyle("height") includes the scrollbar. In Firefox and IE these work as expected, and return the same value (inclusive of the scrollbar).

Please comment on whether this behavior is a bug, or is intentional.

I can provide further details if needed.

Matt Sweeney

YUI Developer

  • YUI Developer
  • Offline
  • Profile

Re: Height in Chrome excludes horiz scrollbar?

Post Posted: Mon Jan 25, 2010 10:03 am
+0-
Chrome is not currently not an A-grade browser, so we do not actively test against it. File a bug with a repro case and I will take a look.
  [ 2 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum