DAY CQ5.4 xtype Dropdown - aem

Day cq5
how do i change the width of a dropdown in cq. Cuerrently it has a fixed width of around 279px, To get a dropdown i specified the type as select and xtype as selection.

The selection widget has a width property that you should be able to set to the width you want. If you haven't already tried that I'd obviously start there...

Related

TinyMCE - Font size selection - directly to tag

i have this nice dropdown with my own font-sizes. But it makes spans.
For me its a problem because the p´s and headlines have line-heights set.
how can i get my font-size without span directly to the p´s ect.
Thanks

How can I change the number of displayed suggestions with Antd Autocomplete?

By default Autocomplete seems to show 8 suggestions at a time, the rest you will have to scroll down to see it. There are no component property related to this number in Antd documentations. Is there any way to change that to another fixed number? How about making it display all?
Internally Autocomplete use the component Select and make all Select properties available, even internal props. listHeight can be used to increase the height of the suggestion dropdrown list. As note in Antd's Select documentation:
Virtual scroll internal set item height as 32px
To make Autocomplete display 10 items for example, set listHeight={320} to Autocomplete. To make it display all items, pass an arbitrary large number to listHeight like 999999 or Number.MAX_SAFE_INTEGER

Default Crystal Text Field Height

In Crystal Reports 2011 when I create a new text field and add it in design view the height is 0.13. Other instances of Crystal I've seen always create these fields at a height of 0.16. How do I set my instance of Crystal to create fields at this height?
you have to change the hight or width your self, and if you want to change more than one textboxes, select them and then right click on them move cursor on "align" and select your choice or you can choose same size for all.
I don't know if you can change the default height of a text object. I've never tried this before but you might be able to use CSS to accomplish this.
I'm not exactly sure how you got into this situation - I've looked all over and can't find a way to modify the default height of a text object in the version you're using (and it is 0.16 inches for my install).
Assuming reinstalling is out of the question (this would be drastic but is probably your best bet), an alternative workaround may be to create an empty text object at the top of a report, manually set it to the correct height, then copy-pasting it anywhere you want a new one instead of using the insert menu.

How to stretch a text field relative to data width in Jasper Reports

I have a text field followed by a static text field and I am trying to do 2 things with it:
Get the text field to stretch horizontally (not wrap) when text is longer then the field width and
Push the static text field right when the text field to the left of it stretches
Both of the fields are contained within a frame.
I have both fields set to positionType=float and the text field set to stretchWithOverflow=true, which enable text to wrap vertically but not stretch horizontally.
Is it possible to achieve 1 and 2 above? If so How?
Instead of having 2 text fields (dynamic and static), you can have 1 text field with value as $F{Field} + "statix text". This will probably fix your issue. Also, you can set the "width" and "stretch with overflow" properties, as per your requirements.
Well it's bad news!! According to Jaspersoft's documentation on stretching fields it is not possible to stretch the width of a field:
"Usually, the stretching process refers to the height adjustment only.
When stretching report elements, adjusting the width could affect also
the page width and raise unexpected errors at runtime (for instance,
truncated information could be printed out on pages). This is why
stretching an element let its width unchanged, while its height gets
definitely enlarged in order to make room for all information that
have to be displayed." (Jaspersoft documentation [v4.5.0], 2011)
However a solution to the original issue can be found here thanks to #mdahlman
Just select text field and from its textfield properties choose "stretch with overflow" and it will change its height dynamically according to text .enter image description here

Custom field size in Plone 4 using Dexterity

A quickie: how does one specify a custom field size (width and height) in a schemata using Dexterity?
For example, a textarea (schema.Text) width is set to 100%. I'd like to specify a default width and height, to make it more useful.
How does one achieve this? I tried looking into plone.directives.form, but couldn't find anything.
The 100% width is actually coming from public.css, and not anything in Dexterity or z3c.form. If you want to override it, you could do so with your stylesheet, or if it is specific to that particular field, you could specify the "style" attribute in your field schema to supply field-specific inline CSS.