Expansion of dropdown

mu258770
Posts: 136
Joined: Mon Aug 18, 2014 4:11 pm

Expansion of dropdown

Post by mu258770 » 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: 7103
Joined: Fri Jul 09, 2004 5:18 pm

Re: Expansion of dropdown

Post by Radu » 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/ ... ditor.html

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

mu258770
Posts: 136
Joined: Mon Aug 18, 2014 4:11 pm

Re: Expansion of dropdown

Post by mu258770 » 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: 7103
Joined: Fri Jul 09, 2004 5:18 pm

Re: Expansion of dropdown

Post by Radu » 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

Post Reply