Conversion Theme - field widths

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
pjshuey
Experienced User
Posts: 119
Joined: Wed May 25, 2016 11:58 am
First Name: Patti
Last Name: Shuey
Company Name: Conestoga Wood Specialties
Phone: 7174452886
Address 1: 645 Reading Road
City: East Earl
State / Province: Pennsylvania
Zip / Postal Code: 17519
Country: United States
Contact:

Conversion Theme - field widths

Post 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?
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Conversion Theme - field widths

Post 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",
.
.
pjshuey
Experienced User
Posts: 119
Joined: Wed May 25, 2016 11:58 am
First Name: Patti
Last Name: Shuey
Company Name: Conestoga Wood Specialties
Phone: 7174452886
Address 1: 645 Reading Road
City: East Earl
State / Province: Pennsylvania
Zip / Postal Code: 17519
Country: United States
Contact:

Re: Conversion Theme - field widths

Post by pjshuey »

That is exactly what I was looking for. Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests