ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: lsl on March 31, 2014, 02:22:15 pm

Title: Editor width/height settings problem
Post by: lsl on March 31, 2014, 02:22:15 pm
We found that if we use the editor function of PQgrid

obj.editor={type:'select',options:xoption};

the input field (combobox and textarea) is fixed with a width 10px smaller than the cell
which make a strange gap in between the cell border.
(pic1.jpg)

I try to change the width and height to inherit it in chrome debugger, it shows perfectly fit with the cell
(pic2.jpg)

although i try to modify the CSS of the class, it is overrided by the style="89px" of the combobox.
(pic3.jpg)

Title: Re: Editor width/height settings problem
Post by: paramvir on March 31, 2014, 04:24:50 pm
It can be fixed by adding style in the select editor.

Code: [Select]
obj.editor={type:'select',
  style:"width:inherit;",
  options:xoption};