Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Prasad on May 26, 2008 04:34
open dhtmlx forum
Multiline mode

Hello Support,
Can we decrease the space between two lines of multiline data?
Answer posted by Support on May 26, 2008 05:10
>> Can we decrease the space between two lines of multiline data?
The height of cell is equal to the height of content in case of multiline mode. It is set automatically and can't be changed by API
Answer posted by Prasad on May 26, 2008 06:00
Thanks.
I think I wasnt ask question correctly, I guess it need to have more descriptive.
 I have attached bmp file.
Plz Compare A5 and A6 cells.
A5 is in edit mode and A6 is in unedit mode. In edit mode(A5) the space betn first line and second line is less than in the unedit(A6) mode.
 I want the same space in the unedit mode.
Attachments (1)
Answer posted by Prasad on May 27, 2008 03:34
Hello Support,
You have given me  "line-height:20px"  solution to increase the row height in multiline mode.
I just go through the css tutorial ,I found that line-height property increases the distance between two lines.
So I  replaced  height:20px  for line-height:20px.
Now I checked and I found  row height is coming 20 correctly as well as  distance between  two lines in unedit mode is also coming correctly.
Have I done right  thing?
Answer posted by Support on May 28, 2008 02:44
This change must not harm functionality of grid in normal mode ( some side effects may occur if  you are using smart rendering or split mode with row height synchronization )