Click here to Skip to main content
13,042,838 members (78,243 online)

Web Development

 
QuestionUsing Developer Tools Pin
Phanindra26127-Dec-12 1:59
memberPhanindra26127-Dec-12 1:59 
AnswerRe: Using Developer Tools Pin
S.M. Zamshed Farhan12-Jan-13 5:46
memberS.M. Zamshed Farhan12-Jan-13 5:46 
AnswerRe: Using Developer Tools Pin
S.M. Zamshed Farhan12-Jan-13 5:48
memberS.M. Zamshed Farhan12-Jan-13 5:48 
QuestionSSRS Report Conversion to PDF Pin
Vinay Meka22-Dec-12 0:58
memberVinay Meka22-Dec-12 0:58 
AnswerRe: SSRS Report Conversion to PDF Pin
Sandeep Mewara5-Jan-13 20:34
mvpSandeep Mewara5-Jan-13 20:34 
QuestionCould not load file or assembly Pin
Chona117120-Dec-12 1:57
memberChona117120-Dec-12 1:57 
AnswerRe: Could not load file or assembly Pin
ArpitDubey28-Dec-12 8:50
memberArpitDubey28-Dec-12 8:50 
QuestionHow should I measure scroll position in different browsers Pin
woomla17-Dec-12 21:52
memberwoomla17-Dec-12 21: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 Pin
Zaf Khan19-Dec-12 5:46
memberZaf Khan19-Dec-12 5:46 
QuestionBest Web Technologies Pin
emadns12-Dec-12 3:40
memberemadns12-Dec-12 3:40 
AnswerRe: Best Web Technologies Pin
David Mujica12-Dec-12 4:22
memberDavid Mujica12-Dec-12 4:22 
AnswerRe: Best Web Technologies Pin
achantayamini17-Dec-12 22:05
memberachantayamini17-Dec-12 22:05 
AnswerRe: Best Web Technologies Pin
jfmorgan33331-Dec-12 10:01
memberjfmorgan33331-Dec-12 10:01 
QuestionJSP and JSTL and so on ... Pin
SheraX11-Dec-12 6:20
memberSheraX11-Dec-12 6:20 
AnswerRe: JSP and JSTL and so on ... Pin
Marcus Kramer11-Dec-12 6:28
memberMarcus Kramer11-Dec-12 6:28 
GeneralRe: JSP and JSTL and so on ... Pin
SheraX11-Dec-12 6:32
memberSheraX11-Dec-12 6:32 
GeneralRe: JSP and JSTL and so on ... Pin
Andrew Stoute11-Dec-12 7:03
memberAndrew Stoute11-Dec-12 7:03 
GeneralRe: JSP and JSTL and so on ... Pin
SheraX11-Dec-12 7:12
memberSheraX11-Dec-12 7:12 
QuestionSMTP Programming Pin
DisIsHoody9-Dec-12 13:49
memberDisIsHoody9-Dec-12 13:49 
AnswerRe: SMTP Programming Pin
vbmike10-Dec-12 8:49
membervbmike10-Dec-12 8:49 
GeneralRe: SMTP Programming Pin
DisIsHoody10-Dec-12 13:30
memberDisIsHoody10-Dec-12 13:30 
GeneralRe: SMTP Programming Pin
Richard MacCutchan10-Dec-12 21:36
mvpRichard MacCutchan10-Dec-12 21:36 
GeneralRe: SMTP Programming Pin
DisIsHoody11-Dec-12 9:40
memberDisIsHoody11-Dec-12 9:40 
GeneralRe: SMTP Programming Pin
Richard MacCutchan11-Dec-12 10:26
mvpRichard MacCutchan11-Dec-12 10:26 
GeneralRe: SMTP Programming Pin
DisIsHoody11-Dec-12 10:44
memberDisIsHoody11-Dec-12 10:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    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
Web02 | 2.8.170713.1 | Last Updated 18 Jul 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid