Jump to content

TUniDBGrid, changing RowHeight during runtime


snow

Recommended Posts

Hello,

I have a TUniDBGrid where RowHeight and FontSize are changed during runtime.

Changing RowHeight works for the normal rows but not for the header row.

1.) Is it possible to change RowHeight for the header during runtime as well? If yes, how?

2.) After changing RowHeight/Font, the text inside the cells isn't displayed correctly anymore (see attached picture). How can this be solved (for header and normal cells)?

Using Professional Edition v1.90.0.1545

Thanks in advance.

 

 

Unbenannt.jpg

Link to comment
Share on other sites

1 hour ago, snow said:

2.) After changing RowHeight/Font, the text inside the cells isn't displayed correctly anymore (see attached picture). How can this be solved (for header and normal cells)?

Hello,

Can you try this CSSs?

.x-column-header {
    line-height: normal;
}

.x-column-header-text-wrapper {
  vertical-align: top;
}

 

Link to comment
Share on other sites

Hi Sherzod,

thanks for the reply.

Using

.x-column-header {
    line-height: normal;
}

the header looks like its supposed to be.

But the text in normal cells is not vertically centered and it's also not showing properly (lower part is cut).

How can this be solved?

 

Link to comment
Share on other sites

Hi Sherzod,

I've created another test project (including a SQLite database) so the problem should be immediately reproducable.

As you can see, the text in the normal cells isn't displayed properly... should be vertically centered and not cut.

Thanks in advance for your help.

Regards

Project1.zip

Link to comment
Share on other sites

59 minutes ago, snow said:

Hi Sherzod,

I've created another test project (including a SQLite database) so the problem should be immediately reproducable.

As you can see, the text in the normal cells isn't displayed properly... should be vertically centered and not cut.

Thanks in advance for your help.

Regards

Project1.zip 7.7 kB · 0 downloads

Hello

Please use below css

.x-grid-td {
    line-height: normal;
}

 

Link to comment
Share on other sites

Thanks!

Text in normal cells is now not cut anymore but still showing with a vertical top alignment. You can see that when you set grdAuswahl.Font.Size to e.g. 15 in UniFormBeforeShow.

How to accomplish a vertically centered alignment?

Regards

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...