Is there a way to programmatically change the Editor (lightbox) height?

Is there a way to programmatically change the Editor (lightbox) height?

almircamposalmircampos Posts: 13Questions: 5Answers: 0
edited July 2015 in Editor

The problem should be trivial, but I wasn't able to find a solution: I have three fields to edit, and one of them is a select (I'm using the selectize.js plugin). When the select opens, the dropbox doesn't fit in the form box.

I this specific case I don't want to define the values for the div.DTE div.DTE_Form_Content in a <style> tag.

Thank you,

Almir

Answers

  • allanallan Posts: 61,853Questions: 1Answers: 10,134 Site admin

    What to do is use the dropdownParent option of the Selectize library. The issue is that it is attaching itself inside the lightbox which has visibility: auto set in order to allow scrolling.

    {
      name: ...,
      label: ...,
      type: 'selectize',
      opts: {
        dropdownParent: 'body'
      }
    }
    

    Allan

This discussion has been closed.