Click here to Skip to main content
       

Web Development

 
AnswerRe: Using Developer Tools PinmemberS.M. Zamshed Farhan12-Jan-13 6:46 
AnswerRe: Using Developer Tools PinmemberS.M. Zamshed Farhan12-Jan-13 6:48 
AnswerRe: Using Developer Tools Pinmemberrg1024-Jan-13 2:40 
QuestionSSRS Report Conversion to PDF [modified] PinmemberVinay Meka22-Dec-12 1:58 
AnswerRe: SSRS Report Conversion to PDF PinmvpSandeep Mewara5-Jan-13 21:34 
QuestionCould not load file or assembly PinmemberChona117120-Dec-12 2:57 
AnswerRe: Could not load file or assembly PinmemberArpitDubey28-Dec-12 9:50 
QuestionHow should I measure scroll position in different browsers [modified] Pinmemberwoomla17-Dec-12 22:52 
I cannot exactly figure out how the scroll position is measured.
 
I have a container with a specific height (400) and some elements (30) in it with specific heights (18). The container displays about 7.2 items in it. The maximum scroll position in firefox is 142. In chrome 141.
 
If the container can display an exact number of items then the calculation is simple: number-of-items * item-height - container-height.
 
But how is it calculated if the container displays 7.2 items?
 
And worse, if the container has padding top and bottom?
 
See this example[^]
 

[edit]
The reason why I want this is because I want some kind of ScrollBar. I have it kind of working, but there are differences in browsers.
 
In firefox, this example works: http://jsfiddle.net/woomla/ma88D/7/[^]
 
In chrome this example workds: http://jsfiddle.net/woomla/ma88D/8/[^]
 
The difference is that in the chrome version I need to add padding-top and padding-bottom to the max scroller distance. In firefox I need to add only padding-top.

modified 18-Dec-12 7:05am.

AnswerRe: How should I measure scroll position in different browsers PinmemberZaf Khan19-Dec-12 6:46 
QuestionBest Web Technologies Pinmemberemadns12-Dec-12 4:40 
AnswerRe: Best Web Technologies PinmemberDavid Mujica12-Dec-12 5:22 
AnswerRe: Best Web Technologies Pinmemberachantayamini17-Dec-12 23:05 
AnswerRe: Best Web Technologies Pinmemberjfmorgan33331-Dec-12 11:01 
QuestionJSP and JSTL and so on ... PinmemberSheraX11-Dec-12 7:20 
AnswerRe: JSP and JSTL and so on ... PinmemberMarcus Kramer11-Dec-12 7:28 
GeneralRe: JSP and JSTL and so on ... PinmemberSheraX11-Dec-12 7:32 
GeneralRe: JSP and JSTL and so on ... PinmemberAndrew Stoute11-Dec-12 8:03 
GeneralRe: JSP and JSTL and so on ... PinmemberSheraX11-Dec-12 8:12 
QuestionSMTP Programming PinmemberDisIsHoody9-Dec-12 14:49 
AnswerRe: SMTP Programming Pinmembervbmike10-Dec-12 9:49 
GeneralRe: SMTP Programming PinmemberDisIsHoody10-Dec-12 14:30 
GeneralRe: SMTP Programming PinmvpRichard MacCutchan10-Dec-12 22:36 
GeneralRe: SMTP Programming PinmemberDisIsHoody11-Dec-12 10:40 
GeneralRe: SMTP Programming PinmvpRichard MacCutchan11-Dec-12 11:26 
GeneralRe: SMTP Programming PinmemberDisIsHoody11-Dec-12 11:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.141223.1 | Last Updated 26 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid