Hello, is there a possibility to create a relative layout in FS? Currently our test form consists of several blocks with different number of imput fields. We would rather not define the exact height and width in pixels for each item and it looks pretty good except the interval between 2 items in the block with the smaller number of items. The IDE interface does not have the ability to set the height of the cells or rows in pixel or % equivalent. Is there any way to eliminate the space between 2 rows? (I thought it would be a good idea to attach the screenshots for clarification but I don't have enough karma points to do that). ALso I would like to add that this test form is our POC of migration of Oracle FOrms10 to FS. And here I noticed the comment that soon there will be a functionality for the simplier layout conversion. Probably this can solve the issue? |
You should set height attributes for rows. When no height is specified, rows are expanded to fit panel size, but components stay with default heights and aligned to center. That's why those spaces occur.
thanks for your comment but the actual question was if there is or will be a possibility to set something like 3% as a height of a row. But seems that it is not needed as <row heightpolicy="Dynamic"> tag solved the issue with blank space at least in our case.
(04 Jun '13, 07:41)
viktorK
Actually the cause of the spaces is percentage row heights. (Your rows are percentage because no height is set, each row is 33% since there are 3 rows). You should instead use fixed height to eliminate those spaces. If you don't know height of components, you may use heightPolicy as well. It checks content of component after rendering and sets a fixed height for you.
(04 Jun '13, 07:52)
oskansavli ♦♦
Setting percentage heights for the rows is not possible by the way. Only percentage behavior is leaving height attribute empty.
(04 Jun '13, 07:56)
oskansavli ♦♦
|
Hi Anatoly,
Could you please paste your Panel XML here? We will give you the ability to upload pictures but the Panel XML you wrote is actually more important.
Regarding the Forms to FS conversion. We do not have the bandwidth to work on a conversion project. But there are users/customers who are collaborating on such a project. I don't know how far they have progressed. Maybe George and Michiel can provide more information.
Sure, here it is. The changes to the cellSpacing tag (0,1,2) do not reflect in the layout:
sorry for your time. Seems the rught tag to be used is <row heightpolicy="Dynamic">
No need to use heightPolicy. It's a special attribute for dynamically sized components such as grid and textlabels when their height may change during runtime. Just using height attibute would do the work for your case.