ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Roman Savochenko <rom_as@diyaorg.dp.ua>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] Проблемы с DHTML в Firefox
Date: Wed, 27 Aug 2008 18:19:17 +0300
Message-ID: <48B57075.2030307@diyaorg.dp.ua> (raw)
In-Reply-To: <48B56F05.7050004@diyaorg.dp.ua>

[-- Attachment #1: Type: text/plain, Size: 1065 bytes --]

Roman Savochenko wrote:
>> Столкнулся тут с проблемами в работе некоторых вещей в Firefox. Куда 
>> писать незнаю. Поэтому решил для начала попробовать здесь.
>> Проблема заключается в том, что в Firefox отсутствуют переменные 
>> event.clientX и event.clientY, содержащие координаты курсора мыши 
>> внутри элемента, не глобальные по окну (event.offsetX и 
>> event.offsetY). Кроме того не существует рабочего способа получения 
>> реального положения элемента в окне для использования (event.offsetX 
>> и event.offsetY). Известный мне способ получения положения:
>> for( ; obj.offsetParent; obj = obj.offsetParent ) curX += 
>> obj.offsetLeft;
>> Этот способ обходит все вышестоящие элементы и суммирует смещение. Он 
>> прекрасно работает в Konqueror и Opera но в Firefox предоставляет 
>> ошибку на border-width, margin и ещё чего-то. Особенно это заметно 
>> при значительной вложенности и наличии бордюров с маржой.
> Похоже в Firefox он ровно на 8 пикселов занижает значение положения.
Не ровно. В другом месте 6 пикселов.
Полная фигня.

С уважением, Роман

[-- Attachment #2: rom_as.vcf --]
[-- Type: text/x-vcard, Size: 218 bytes --]

begin:vcard
fn:Roman Savochenko
n:Savochenko;Roman
adr;dom:;;;Dneprodzerjinsk
email;internet:rom_as@diyaorg.dp.ua
title:NIP "DIYA"
tel;work:NIP "DIYA"
tel;cell:+380679859815
x-mozilla-html:FALSE
version:2.1
end:vcard


      reply	other threads:[~2008-08-27 15:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-27 10:29 Roman Savochenko
2008-08-27 10:41 ` Alexei V. Mezin
2008-08-27 10:56   ` Roman Savochenko
2008-08-27 15:13 ` Roman Savochenko
2008-08-27 15:19   ` Roman Savochenko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48B57075.2030307@diyaorg.dp.ua \
    --to=rom_as@diyaorg.dp.ua \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git