Author Topic: Blank space on double click ( when height option is '%' )  (Read 1143 times)

JIMAN SON

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 7
    • View Profile
Blank space on double click ( when height option is '%' )
« on: February 10, 2021, 10:48:48 am »
When Grid Option Setting is  - height: "100%"

When double click a data space  and click another data space , a blank space is created below.

If this status continues
The grid slows down a lot.

What should I do?

Below is the code.

https://stackblitz.com/edit/paramquery-react?file=index.js

thanks .

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6210
    • View Profile
Re: Blank space on double click ( when height option is '%' )
« Reply #1 on: February 10, 2021, 02:57:48 pm »
height in % as such doesn't make sense unless its immediate parent element has a defined height:

Example with defined height of parent of grid: https://stackblitz.com/edit/paramquery-react-hk7ssb?file=index.html

If your intention is to make grid height in % relative to body irrespective of immediate parent element, then use dimsRelativeTo option available since v7.6

https://paramquery.com/pro/api#option-dimsRelativeTo
« Last Edit: February 10, 2021, 03:01:02 pm by paramvir »