Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to remove padding created by ResponsiveGridLayout?


I am trying to use ResponsiveGridLayout control on my form so I can use the 12- grid system which helps me give the input fields the right size. The problem is that ResponsiveGridLayout inserts some padding around the form which is not what I want.Any idea how to remove this padding the OpenUI5 way? (as opposed to Custom CSS).

I have posted code snippets and more details on stackoverflow:



Former Member
Former Member replied

hi Radu,

Really depends what you want to achieve.. Case you're going to use this everywhere (or many times in your application) you could extend the ResponsiveGridLayout (and the renderer) to re-implement where the main class is being written (Renderer.getMainClass - String) - add your own class there and use a custom css to code the style.

I would only go thru such if you really need to use this many times - this way you won't need to remember to always add a class into the view layout element - but if this is for one element or two I wouldn't even go thru the trouble of extending controls that could always introduce issues when patching to a higher major release.



0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question