Opened 10 months ago

Last modified 10 months ago

#15290 new bug

Position feedback - my element inside at element

Reported by: mburisin Owned by:
Priority: minor Milestone: none
Component: ui.position Version: 1.12.1
Keywords: Cc:
Blocked by: Blocking:

Description (last modified by mburisin)

When positioned element is inside target element, the position numbers are calculated correctly, however feedback is calculated incorrectly when my, and at parameters are set to same value.

For example:

my: "left bottom",
at: "left bottom"


my: "right top",
at: "right top"

are giving feedback

horizontal: "center", 
vertical: "middle"

With different values, it gives the position correctly

my: "right top",
at: "left bottom"


horizontal: "right", 
vertical: "top"

CodePen here:

EDIT: I'm getting some weird behavior in many cases and I can't understand very well what horizontal & vertical feedback values mean. Maybe behavior described above is not incorrect and it works as intended. Would be nice to have explanation in documentation what these values means and how are they calculated.

Change History (3)

comment:1 Changed 10 months ago by Ryan J Ollos

Description: modified (diff)

comment:2 Changed 10 months ago by mburisin

Description: modified (diff)

comment:3 Changed 10 months ago by mburisin

Description: modified (diff)
Note: See TracTickets for help on using tickets.