-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Element size and scrolling #279
Element size and scrolling #279
Conversation
…surdi/it.javascript.info into article/size-and-scroll
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ottima traduzione 👍 ti ho lasciato un paio di commenti su alcune inesattezze, sono presenti anche nella versione inglese, quindi risolviamole lato nostro, poi apriremo una issue al repo inglese
2-ui/1-document/09-size-and-scroll/4-put-ball-in-center/task.md
Outdated
Show resolved
Hide resolved
|
||
![](metric-scroll-top.svg) | ||
|
||
In other words, `scrollTop` is "how much is scrolled up". | ||
In altre parole, con `scrollTop` si intende "quanto l'elemento è stato fatto scorrere verso l'alto". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Questo è sbagliato (anche in inglese), è esattamente il contrario. Ti lascio il mio suggerimento, se hai idee migliori vai pure 😄
In altre parole, con `scrollTop` si intende "quanto l'elemento è stato fatto scorrere verso l'alto". | |
In altre parole, con `scrollTop` si intende "quanto il contenuto di un elemento viene fatto scorrere verticalmente". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In realtà credo che l'articolo sia corretto 😊 : l'elemento viene fatto scorrere verso l'alto facendo in modo che l'utente possa visualizzare la parte bassa del contenuto. Infatti scrollTop
è la misura della parte alta di element
fuori dall'area visibile di scorrimento. Se traduci con verticalmente non rendi il testo inglese che vuole spiegare perché scrollTop
abbia questo nome. Gli altri suggerimenti dove usi la parola contenuto al posto di elemento vanno bene perché il testo può risultare più intuitivo ma qui lascerei la traduzione inalterata, anche perché, nell'articolo, subito prima c'è un'immagine esplicativa che rende il concetto.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
woo, ora ho capito 😄 però ho dovuto rileggerlo un paio di volte! Okay allora come traduzione ci può stare, però imho questa frase fa solo più confusione, probabilmente io la interpreto male 😄
Please make the requested changes. After it, add a comment "/done". |
Co-authored-by: Andrea <45577511+longo-andrea@users.noreply.github.com>
/done |
2-ui/1-document/09-size-and-scroll/4-put-ball-in-center/solution.md
Outdated
Show resolved
Hide resolved
|
||
[iframe src="solution" height=180] | ||
|
||
- The element should be moved by JavaScript, not CSS. | ||
- The code should work with any ball size (`10`, `20`, `30` pixels) and any field size, not be bound to the given values. | ||
- L'elemento dovrebbe essere spostato con JavaScript, non con i CSS. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- L'elemento dovrebbe essere spostato con JavaScript, non con i CSS. | |
- L'elemento dovrebbe essere spostato con JavaScript, non con CSS. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mmm credo che di averlo sempre trovato con l'articolo in italiano, io lo lascerei così
|
||
P.S. Sure, centering could be done with CSS, but here we want exactly JavaScript. Further we'll meet other topics and more complex situations when JavaScript must be used. Here we do a "warm-up". | ||
P.S. Certamente, il posizionamento al centro potrebbe essere ottenuto con i CSS, ma qui vi chiediamo di farlo proprio con JavaScript. Più avanti incontreremo altri casi e situazioni più complesse in cui JavaScript è l'unica alternativa. Ora ci stiamo solo "scaldando". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P.S. Certamente, il posizionamento al centro potrebbe essere ottenuto con i CSS, ma qui vi chiediamo di farlo proprio con JavaScript. Più avanti incontreremo altri casi e situazioni più complesse in cui JavaScript è l'unica alternativa. Ora ci stiamo solo "scaldando". | |
P.S. Certamente, il posizionamento al centro potrebbe essere ottenuto con CSS, ma qui vi chiediamo di farlo proprio con JavaScript. Più avanti incontreremo altri casi e situazioni più complesse in cui JavaScript è l'unica alternativa. Ora ci stiamo solo "scaldando". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mmm credo che di averlo sempre trovato con l'articolo in italiano, io lo lascerei così
2-ui/1-document/09-size-and-scroll/6-width-vs-clientwidth/solution.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Dorin David <70648503+Dorin-David@users.noreply.github.com>
/done |
Thank you 💖 I updated the Progress Issue #1 🎉 🎉 🎉 |
No description provided.