Quantcast
Channel: SCN : All Content - Web Dynpro ABAP
Viewing all articles
Browse latest Browse all 3667

Same spacing in different TransparentContainer

$
0
0

Hi everybody,

 

I'd like to understand if there's a solution regarding an "issue" I faced many times working on WD Abap development.

 

Consider the following layout: 2 different TransparentContainer elements, Matrixlayout, the second one has Layout data property set as MatrixHeadData.

Now, suppose that each TransparentContainer is itself split (50% and 50%) in two different TC; in this way we're trying to create two different columns inside the root TransparentContainer.


So far the schema is:

 

TRANSPARENTCONTAINER_1 (MatrixLayout)
TC_1_LEFT TC_1_RIGHT (MatrixData)
TRANSPARENTCONTAINER_2 (MatrixLayout, MatrixHeadData)
TC_2_LEFTTC_2_RIGHT (MatrixData)

 

Now, suppose that in each "sub"transparentContainer we add some couples label - inputfield.

What we have is basically shown in the attached screenshot.

 

Notice that all the couples in a single "subTC" share the same alignment, so that the inputField are all correctly aligned.

The "issue" is that obviously, TC_2_LEFT doesn't have the same alignment shown in TC_1_LEFT, neither TC_2_RIGHT has the same spacing visible in the overlying subTC, TC_1_RIGHT.

 

It's fine, I understood that the spacing is evaluated with respect to the elements which are part on the same TransparentContainer.

Therefore, spacings will vary between TC_1_LEFT and TC_2_LEFT since the contained elements are different and in particular, the labels have different length.

 

My question is: is it possible to maintain the same spacing/alignment in TrasparentContainer_1 and TransparentContainer_2?

I'm looking specifically on a workaround to get different TC contents aligned, something like fetch layout spacing from TC_1_LEFT and apply them to TC_2_LEFT.

 

Any idea will be appreciated.

Regards,

M.


Viewing all articles
Browse latest Browse all 3667

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>