2 Replies Latest reply on Jun 22, 2016 7:41 AM by Silly-V

    How to check if a pageItem lies completely inside another pageItem?

    poortip87 Level 1

      Hi All,

       

      I am working on AI CC 2015 latest release.

      I have a scenario where I need to check whether an art item or page item does not overflow the boundary of it's parent page item.

      Is there any way to detect it?

       

      The bounds won't work as they return bounds w.r.t a rectangle.

       

      Please refer to the following images to understand better what I mean to say.

      scenario_1.png

      The above should return true as the rectangle is inside the pageItem.

       

      The below scenarios should return false,

      scenario_2.png

      scenario_3.png

      Any guidance, please?

       

      Regards,

      Poorti