Opened 12 years ago

Closed 12 years ago

#6824 closed bug (notabug)

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.

Change History (3)

comment:1 Changed 12 years ago by Scott González

Can you please provide a use case and a demo?

comment:2 Changed 12 years ago by phatmann

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.

comment:3 Changed 12 years ago by Scott González

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.