Zebra API Doc

zebra.layout.toParentOrigin()

toParentOrigin

(
  • [x]
  • [y]
  • c
  • [p]
)
Object

Translate the given relative location into the parent relative location.

Parameters:

  • [x] Integer optional

    a x coordinate relatively to the given component

  • [y] Integer optional

    a y coordinate relatively to the given component

  • c zebra.layout.Layoutable

    a component

  • [p] zebra.layout.Layoutable optional

    a parent component


Return: Object

a relative to the given parent UI component location:

   { x:{Integer}, y:{Integer} }