Opened 8 months ago

Last modified 8 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"

and

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"

gives

horizontal: "right", 
vertical: "top"

CodePen here: https://codepen.io/anon/pen/ZopvXL#anon-login

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 8 months ago by Ryan J Ollos

Description: modified (diff)

comment:2 Changed 8 months ago by mburisin

Description: modified (diff)

comment:3 Changed 8 months ago by mburisin

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