Page 1 of 1

Expansion of dropdown

Posted: Tue Jul 05, 2016 8:47 am
by mu258770
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

Re: Expansion of dropdown

Posted: Tue Jul 05, 2016 9:45 am
by Radu
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

Re: Expansion of dropdown

Posted: Tue Jul 05, 2016 1:22 pm
by mu258770
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

Re: Expansion of dropdown

Posted: Tue Jul 05, 2016 2:15 pm
by Radu
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