Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » middle align
middle align [message #1780695] Thu, 25 January 2018 21:10 Go to next message
Dmitry Dukhov is currently offline Dmitry DukhovFriend
Messages: 194
Registered: February 2013
Senior Member
How to set text to middle align(vertical) inside rows for TableViewer?
Re: middle align [message #1780943 is a reply to message #1780695] Tue, 30 January 2018 09:10 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2427
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
that's an old enhancement request:

361796: [Table][Tree] Setting vertical alignment
https://bugs.eclipse.org/bugs/show_bug.cgi?id=361796

but unfortunately, we didn't find a generic solution for the problem, which can be used together with different Tree/Table/Nebula Grid configurations: raw template, single checkbox cell, markup, cell with image, etc.

Regards,
Ivan
Re: middle align [message #1781222 is a reply to message #1780943] Sat, 03 February 2018 09:20 Go to previous messageGo to next message
David Song is currently offline David SongFriend
Messages: 217
Registered: April 2011
Senior Member
For markup in table, tree or grid, it is necessary to align vertically, and hope the feature would be resolved soon as possible.
Re: middle align [message #1781225 is a reply to message #1781222] Sat, 03 February 2018 15:04 Go to previous messageGo to next message
Dmitry Dukhov is currently offline Dmitry DukhovFriend
Messages: 194
Registered: February 2013
Senior Member
ok but What element is must set as markup?
Re: middle align [message #1849410 is a reply to message #1780695] Tue, 18 January 2022 16:06 Go to previous message
Nicola Zanaga is currently offline Nicola ZanagaFriend
Messages: 56
Registered: July 2009
Member
Hi, for vertical alignment on table / tree, I see the css of div item contains for example

<div style="position: absolute; top: 5px;" ....>

to center item, could be used:

<div style="position: absolute; top: 50%; transform: translateY(-50%); ..>

I found this style here:
https://www.w3schools.com/howto/howto_css_center-vertical.asp

could this style used instead of current ?
Previous Topic: electronic signature
Next Topic:HighDPI / UIScaling Support in RAP
Goto Forum:
  


Current Time: Tue Oct 15 15:16:09 GMT 2024

Powered by FUDForum. Page generated in 0.05049 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top