Issue #559Opened November 22, 2017by Geczy0 reactions

Why is my component selected full width?

Question

Trying to create a custom component, see demo here and code here

Drag out two button, then drag out two button + link The two buttons are proper width, but the custom component is some weird full width fixed height thing

Why?

image

Answers (3)

artfNovember 23, 20170 reactions

the default tagName property is a div, change this in your model

 ...
 defaults: Object.assign({}, defaultModel.prototype.defaults, {
              tagName: 'span', //<---
              droppable: false,
...
GeczyNovember 23, 20170 reactions

Makes sense now, thanks

lock[bot]September 18, 20190 reactions

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.