Author Topic: Editor width/height settings problem  (Read 2763 times)

lsl

  • Pro Deluxe
  • Jr. Member
  • *
  • Posts: 67
    • View Profile
Editor width/height settings problem
« 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)


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Editor width/height settings problem
« Reply #1 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};