Page 1 of 1

Conversion Theme - field widths

Posted: Thu Aug 23, 2018 2:18 pm
by pjshuey
Is there a way to calculate the width of an output field in the conversion theme similar to how the width for a textbox is calculated?

Re: Conversion Theme - field widths

Posted: Thu Aug 23, 2018 3:30 pm
by Scott Klement
By default, our conversion themes do not set the width of output fields, this causes the browser to automatically size the output field to the size of the text you put into it.

If you'd rather that the DDS conversion does set the width on every field, you can set the "always set width" option in the theme to true. For example:

Code: Select all

.
.
pui.cnv.themes.add({
  "name": "Scott Theme",

  "input css class": "hybrid-input",
  "constant css class": "hybrid-constant",
  "output field css class": "hybrid-output-field",
  "always set width": true,                                 <---- add this line

  "css class prefix": "",

  "default locale": "en_US",
.
.

Re: Conversion Theme - field widths

Posted: Thu Aug 23, 2018 3:56 pm
by pjshuey
That is exactly what I was looking for. Thanks!