[Webkit-unassigned] [Bug 85856] [Chromium] Cannot show the left side of an RTL element with a vertical scrollbar

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 17 22:55:08 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=85856





--- Comment #30 from Hironori Bono <hbono at chromium.org>  2012-07-17 22:55:07 PST ---
(From update of attachment 151640)
View in context: https://bugs.webkit.org/attachment.cgi?id=151640&action=review

>> LayoutTests/scrollbars/rtl/div-horizontal.html:36
>> +var scrollbarWidthRTL = outerRTL.clientLeft > 0 ? outerRTL.clientLeft : outerRTL.offsetWidth - outerRTL.clientWidth;
> 
> Why do we need the outerRTL.clientLeft > 0 check? Won't outerRTL.offsetWidth - outerRTL.clientWidth always give the width of the scrollbar?

Yes, you are totally right and this is caused by my misunderstanding. (I too much focused on using clientLeft when its scrollbar is at the left side. In fact, offsetWidth - clientWidth always represents the scrollbar width.)

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list