Skip to main content

Search and Top Navigation

#6824 closed bug (notabug)

Opened January 08, 2011 01:50AM UTC

Closed January 09, 2011 02:44PM UTC

position() with collision can change element width

Reported by: phatmann Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.position Version: 1.8.7
Keywords: Cc:
Blocked by: Blocking:
Description

If an element does not have a width, then using position() with collision set to "fit" can change the width of the element. The fix is to get the width before positioning the object and then restore it afterwards.

Attachments (0)
Change History (3)

Changed January 08, 2011 03:26AM UTC by scottgonzalez comment:1

Can you please provide a use case and a demo?

Changed January 09, 2011 06:40AM UTC by phatmann comment:2

When putting together the demo code, I realized that the bug only occurs when positioning a hidden element. I believe this is a known problem. If you still want the demo code, I would be happy to post it, otherwise this bug can be closed.

Changed January 09, 2011 02:44PM UTC by scottgonzalez comment:3

resolution: → invalid
status: newclosed