2 added 344 characters in body
source | link

XPM borders are drawn around Component Presentations based on the HTML element in which the Start Component Presentation markup is specified. Take for example the following HTML:

<div>
   <article>
       <!-- Start Component Presentation: {...} -->
       <span>...</span>
   </article>
<div>

The border around the Component Presentation is drawn using the size of the article element.

For XPM Dropzones this is quite similar, but following the Start Region markup. Take for example the following HTML:

<header>
    <!-- Start Region: {...} -->
    <div>
       <!-- Start Component Presentation: {...} -->
       <span>...</span>
    </div>
</header>

The border for the XPM Dropzone is drawn using the size of the header element, in combination with the size of the div (since it will be drawn on top or at the bottom of that).

Now in general the Dropzones are always displayed above and below a Component Presentation, since you are technically inserting a Component Presentation into a Page, and that can only be done either before or after another Component Presentation.

As far as I know there is no way to control the behavior of where the Dropzone areas are drawn, but indeed they are not always drawn above or below the Component Presentation (what you would call horizontal I guess). It seems that depending on the amount of Component Presentations inside a Region and their display, the Dropzone areas can also be drawn left and right of the Component Presentation. See attached screenshot which I pasted together showing three different Dropzones being drawn inside the same Region, with Component Presentations using similar HTML markup (but of different sizes).

enter image description here

The only thing I can identify in this case is that if the Component Presentation border is smaller than the Region border and not touching the left side of the Region border (which is the case for the second and third Component Presentation in this example), the XPM Dropzone area will be drawn left and right of the Component Presesentation.

XPM borders are drawn around Component Presentations based on the HTML element in which the Start Component Presentation markup is specified. Take for example the following HTML:

<div>
   <article>
       <!-- Start Component Presentation: {...} -->
       <span>...</span>
   </article>
<div>

The border around the Component Presentation is drawn using the size of the article element.

For XPM Dropzones this is quite similar, but following the Start Region markup. Take for example the following HTML:

<header>
    <!-- Start Region: {...} -->
    <div>
       <!-- Start Component Presentation: {...} -->
       <span>...</span>
    </div>
</header>

The border for the XPM Dropzone is drawn using the size of the header element.

Now in general the Dropzones are always displayed above and below a Component Presentation, since you are technically inserting a Component Presentation into a Page, and that can only be done either before or after another Component Presentation.

As far as I know there is no way to control the behavior of where the Dropzone areas are drawn, but indeed they are not always drawn above or below the Component Presentation (what you would call horizontal I guess). It seems that depending on the amount of Component Presentations inside a Region and their display, the Dropzone areas can also be drawn left and right of the Component Presentation. See attached screenshot which I pasted together showing three different Dropzones being drawn inside the same Region, with Component Presentations using similar HTML markup (but of different sizes).

enter image description here

XPM borders are drawn around Component Presentations based on the HTML element in which the Start Component Presentation markup is specified. Take for example the following HTML:

<div>
   <article>
       <!-- Start Component Presentation: {...} -->
       <span>...</span>
   </article>
<div>

The border around the Component Presentation is drawn using the size of the article element.

For XPM Dropzones this is quite similar, but following the Start Region markup. Take for example the following HTML:

<header>
    <!-- Start Region: {...} -->
    <div>
       <!-- Start Component Presentation: {...} -->
       <span>...</span>
    </div>
</header>

The border for the XPM Dropzone is drawn using the size of the header element, in combination with the size of the div (since it will be drawn on top or at the bottom of that).

Now in general the Dropzones are always displayed above and below a Component Presentation, since you are technically inserting a Component Presentation into a Page, and that can only be done either before or after another Component Presentation.

As far as I know there is no way to control the behavior of where the Dropzone areas are drawn, but indeed they are not always drawn above or below the Component Presentation (what you would call horizontal I guess). It seems that depending on the amount of Component Presentations inside a Region and their display, the Dropzone areas can also be drawn left and right of the Component Presentation. See attached screenshot which I pasted together showing three different Dropzones being drawn inside the same Region, with Component Presentations using similar HTML markup (but of different sizes).

enter image description here

The only thing I can identify in this case is that if the Component Presentation border is smaller than the Region border and not touching the left side of the Region border (which is the case for the second and third Component Presentation in this example), the XPM Dropzone area will be drawn left and right of the Component Presesentation.

1
source | link

XPM borders are drawn around Component Presentations based on the HTML element in which the Start Component Presentation markup is specified. Take for example the following HTML:

<div>
   <article>
       <!-- Start Component Presentation: {...} -->
       <span>...</span>
   </article>
<div>

The border around the Component Presentation is drawn using the size of the article element.

For XPM Dropzones this is quite similar, but following the Start Region markup. Take for example the following HTML:

<header>
    <!-- Start Region: {...} -->
    <div>
       <!-- Start Component Presentation: {...} -->
       <span>...</span>
    </div>
</header>

The border for the XPM Dropzone is drawn using the size of the header element.

Now in general the Dropzones are always displayed above and below a Component Presentation, since you are technically inserting a Component Presentation into a Page, and that can only be done either before or after another Component Presentation.

As far as I know there is no way to control the behavior of where the Dropzone areas are drawn, but indeed they are not always drawn above or below the Component Presentation (what you would call horizontal I guess). It seems that depending on the amount of Component Presentations inside a Region and their display, the Dropzone areas can also be drawn left and right of the Component Presentation. See attached screenshot which I pasted together showing three different Dropzones being drawn inside the same Region, with Component Presentations using similar HTML markup (but of different sizes).

enter image description here