Турция и Москва · фактыTurkey & Moscow

Открытый список адресов не уезжает вниз после смены языкаAn open list of addresses no longer drops down after a language switch

· Открыть на сайтеOpen on the site

ЦельGoal

Инвестор на экране от 800 px открыл список адресов домена, переключил язык в подвале — и видит адреса сразу под доменом.An investor on a screen from 800 px opens a domain's list of addresses, switches the language in the footer and sees the addresses right under the domain.

ЗадачаProblem

Отступ открытого списка считался от верха окна. Если строка домена была выше окна — после смены языка кнопкой в подвале или после изменения ширины окна ниже по странице, — список уезжал вниз: у cds.climate.copernicus.eu (820 px, переключение на английский) отступ стал 2616 px вместо 155, страница — 7084 px вместо 4623. Со всеми открытыми списками сдвигались 93 из 97 (800 px, смена языка в любую сторону).The open list's offset was measured from the top of the window. When the domain's row was above the window — after switching the language with the footer button, or after resizing the window further down the page — the list dropped down: for cds.climate.copernicus.eu (820 px) the offset became 2616 px instead of 155, and the page 7084 px instead of 4623. With all lists open, 93 of 97 moved (800 px, a switch in either direction).

Как решилиHow it was solved

До и послеBefore and after

До (820 px): список открыт, язык переключён в подвале — под доменом пусто: отступ списка 2616 px вместо 155 / Before (820 px): list open, language switched in the footer — empty space under the domain: the list's offset is 2616 px instead of 155
До (820 px): список открыт, язык переключён в подвале — под доменом пусто: отступ списка 2616 px вместо 155Before (820 px): list open, language switched in the footer — empty space under the domain: the list's offset is 2616 px instead of 155
После: адрес сразу под доменом и заметкой / After: the address right under the domain and its note
После: адрес сразу под доменом и заметкойAfter: the address right under the domain and its note