Author Topic: How can I prevent cell overflow input box?  (Read 2217 times)

choidongjun

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 3
  • innodale
    • View Profile
How can I prevent cell overflow input box?
« on: May 06, 2020, 01:37:55 pm »
Hi Paramquery Team,
I'm using ParamQuery Pro v7.1.0.

How can I prevent cell overflow input box?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: How can I prevent cell overflow input box?
« Reply #1 on: May 06, 2020, 09:29:16 pm »
Currently there is no inbuilt option to prevent input overflow, option might be added in upcoming versions.

Meanwhile you may use this to prevent input overflow.

Code: [Select]
$.paramquery.cEditor.prototype.fixWidth = function( ui ){
var that = this.that,
            $td = ui.$td, td = $td[0],
width = td.offsetWidth,
$grid = that.widget(),
$editor = ui.$editor;

$editor.css("width", width+"px");

        this.position($editor, $grid, $td);
}

Webauthor

  • Pro OEM
  • Jr. Member
  • *
  • Posts: 51
    • View Profile
Re: How can I prevent cell overflow input box?
« Reply #2 on: November 04, 2020, 11:19:28 pm »
Hi, I'm having an issue related to this.  Please see attached image.

Webauthor

  • Pro OEM
  • Jr. Member
  • *
  • Posts: 51
    • View Profile
Re: How can I prevent cell overflow input box?
« Reply #3 on: November 05, 2020, 01:26:39 am »
Figured out the issue - was a conflict on my end.