Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Misaligned Table Column Headers
Misaligned Table Column Headers [message #1015880] Mon, 04 March 2013 06:53 Go to next message
Markus Duft is currently offline Markus DuftFriend
Messages: 148
Registered: February 2013
Senior Member
Hey!

Still fighting/playing (choose Wink) with tables. I'm currently bringing our "setting" support (written for SWT table) to RAP. now in some cases this thing tries to hide columns by setting the width to zero. In some cases this works, and in some i get weirdly misaligned headers (see screenshots). Also it seems that /sometimes/ not even a zero width is required but table headers are expanded to fit the text in them (but really not always - you can see that in the first screeny).

Hm, having more looks it seems that /that's/ the only issue: the contents makes the headers expand. i just have so many of them (see first screeny) that multiple of them overlap and make it look quite weird.

index.php/fa/13650/0/
index.php/fa/13651/0/

From the second one you can see that the last column (Fixed) should not be visible at all (no borders drawn in table) but the header is there, and (by accident?) has the exact size of the contents. i think there is a little bit missing...?

Another detail: i cannot reproduce this by dragging headers to different sizes - this works well. it seems that it's "only" reproducable through setWidht(), and there not always.

EDIT: in the second screeny, the label for the first column should have been "Name", also. The "Identifier" is another one of those "hidden" columns (width=0).

Any Ideas? maybe some workaround? even in JS, i take all Wink)

Markus

[Updated on: Mon, 04 March 2013 06:55]

Report message to a moderator

Re: Misaligned Table Column Headers [message #1015884 is a reply to message #1015880] Mon, 04 March 2013 07:26 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Markus,
without a way to reproduce and debug it we can't help you much. Please
open a bugzilla about this issue. Are you using RAP 2.0? Is this happen
in all browsers - Firefox, IE, Chrome?
Best,
Ivan


On 3/4/2013 8:53 AM, Markus Duft wrote:
> Hey!
>
> Still fighting/playing (choose ;)) with tables. I'm currently bringing our "setting" support (written for SWT table) to RAP. now in some cases this thing tries to hide columns by setting the width to zero. In some cases this works, and in some i get weirdly misaligned headers (see screenshots). Also it seems that /sometimes/ not even a zero width is required but table headers are expanded to fit the text in them (but really not always - you can see that in the first screeny).
>
> Hm, having more looks it seems that /that's/ the only issue: the contents makes the headers expand. i just have so many of them (see first screeny) that multiple of them overlap and make it look quite weird.
>
>
>
>
> From the second one you can see that the last column (Fixed) should not be visible at all (no borders drawn in table) but the header is there, and (by accident?) has the exact size of the contents. i think there is a little bit missing...?
>
> Another detail: i cannot reproduce this by dragging headers to different sizes - this works well. it seems that it's "only" reproducable through setWidht(), and there not always.
>
> Any Ideas? maybe some workaround? even in JS, i take all ;))
>
> Markus

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Misaligned Table Column Headers [message #1015888 is a reply to message #1015884] Mon, 04 March 2013 08:02 Go to previous messageGo to next message
Markus Duft is currently offline Markus DuftFriend
Messages: 148
Registered: February 2013
Senior Member
https://bugs.eclipse.org/bugs/show_bug.cgi?id=402270

there is a small sample code also
Re: Misaligned Table Column Headers [message #1015890 is a reply to message #1015888] Mon, 04 March 2013 08:09 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Thanks

On 3/4/2013 10:02 AM, Markus Duft wrote:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=402270
>
> there is a small sample code also

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Misaligned Table Column Headers [message #1016451 is a reply to message #1015890] Wed, 06 March 2013 13:47 Go to previous message
Markus Duft is currently offline Markus DuftFriend
Messages: 148
Registered: February 2013
Senior Member
i have added a workaround proposal to the bug. and i have a question about it:

i try to patch (using rwt.qx.Class.patch) the GridHeader class. when i do it before the GridHeader constructor ran for the first time, the prototype is empty (thus the new() in my patch). in that case the mixin will be applied to an empty prototype, and it will result in a reverse order of functions (the mixin is base() of the actual implementation in RWT). is this desired/known behaviour? i mean it works the way i have it, but "clean" is something else Very Happy
Previous Topic:Checking Browser type & Version Number
Next Topic:RWT ServiceManager
Goto Forum:
  


Current Time: Fri Apr 19 10:05:10 GMT 2024

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

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

Back to the top