PDA

View Full Version : [FIXED] (Beta2) Vertical alignment in HorizontalPanel doesn't work



Orion-
16 May 2008, 2:09 AM
Hello,

as the title says it, I create a HorizontalPanel, set its vertical alignment to MIDDLE and add some components to it. The vertical alignment isn't taken into account, it is always TOP.

I think that I found the reason. HorizontalPanel uses a TableRowLayout internally. The problem is in function getNextCell from TableRowLayout, which associates a TableData to each component, and doesn't use the vertical alignment that I have set to the TableRowLayout, but the default of the newly created TableData, which is TOP.

As a workaround, I added a TableData to each Component before adding it to the HorizontalPanel, where I set the vertical alignment to MIDDLE. But this supposes to know how the internal of HorizontalPanel works.

Shouldn't the vertical alignment set on HorizontalPanel be used ?

Orion-

darrellmeyer
16 May 2008, 10:26 AM
TableRowLayout and TableLayout have been fixed. Change is in SVN.