Expansion of dropdown

mu258770
Posts: 105

Expansion of dropdown

Tue Jul 05, 2016 8:47 am

Hi Team,

I want to add a dropdown for <pre> element having attributes as pgwide,condensed and pgwide,condensed(both).
In GUI the dropdown appears bigger in size as it has both pgwide,condensed.
Is there any possibility to have a small dropdown in GUI and on clicking that dropdown it should expand so that it can fit all the 3 attributes(pgwide,condensed,(pgwide,condensed)).

Example:
The sample code for dropdown I am using is:

Code: Select all

*[class~="hazard-d/hazardstatement"]: {
content:
   oxy_combobox(
        edit, '@type',
        editable, false,
        values, ', caution,danger,notice,warning',
      columns, 9
    );
}

Please help me in providing the CSS code for expanding the dropdown on clicking on that.

Thankyou!

Regards,
Shabeer
Radu
Posts: 5379

Re: Expansion of dropdown

Tue Jul 05, 2016 9:45 am

Hi Shabeer,

Have you tried to use the oxy_popup form control instead? It has a more compact layout.

https://www.oxygenxml.com/doc/versions/18/ug-editor/topics/pop-up-editor.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
mu258770
Posts: 105

Re: Expansion of dropdown

Tue Jul 05, 2016 1:22 pm

Hi Team,

I need a dropdown so that user can easily select from that dropdown.
Is there any possibility to increse the size of dropdown after selection?

Regards,
Shabeer
Radu
Posts: 5379

Re: Expansion of dropdown

Tue Jul 05, 2016 2:15 pm

Hi Shabeer,

Once you set a columns or a width property on the combo box, that will be the largest maximum width of the combo, the combo width will not grow over that width. So I don't have a workaround for you right now. I will add an issue on our side to allow setting a preferred size on the combo box, a size which can increase when the edited value is larger than it.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Return to “DITA (Editing and Publishing DITA Content)”

Who is online

Users browsing this forum: Majestic-12 [Bot] and 2 guests