Bug Tracker

Opened 6 years ago

Closed 6 years ago

#14768 closed bug (wontfix)

Set wrong offset for display:none elements

Reported by: maciekmp@… 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.

Change History (3)

comment:1 Changed 6 years ago by anonymous

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

comment:2 Changed 6 years ago by dmethvin

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

comment:3 Changed 6 years ago by dmethvin

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.

Note: See TracTickets for help on using tickets.