Skip to main content

Bug Tracker

Side navigation

#14768 closed bug (wontfix)

Opened February 07, 2014 07:56AM UTC

Closed February 24, 2014 03:22PM UTC

Set wrong offset for display:none elements

Reported by: maciekmp@gmail.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:
Description

Setting offset for absolute display:none elements cause wrong offset after element is set to display:block.

Attachments (0)
Change History (3)

Changed February 07, 2014 08:01AM UTC by anonymous comment:1

http://jsfiddle.net/b6U2U/3/ - after resizing window and click on red element offset of green one is wrong.

Changed February 07, 2014 02:00PM UTC by dmethvin comment:2

This is probably due to https://github.com/jquery/api.jquery.com/issues/197 and won't be fixed.

Changed February 24, 2014 03:22PM UTC by dmethvin comment:3

resolution: → wontfix
status: newclosed

This will be documented. In general it's very expensive to ask for the position or size of hidden elements and should be avoided anyway.