Skip to Content
0
Former Member
Apr 22, 2014 at 05:28 PM

Padding in Splitter

58 Views

Hey,

I want my content inside the second Pane of a Vertical Splitter to have a padding. So it doesnt "touches" the splitter. How can I do this?

I tried to define a style: .sapUiVSplitterSecondPane { padding-top:20px; padding-left:20px;} this pretty much does what I want but it breaks the controll.

How can I do this correctly?

Also: How can I create a simple container (div) in openUI5?

What I wanted to do but didnt knew how to:

//create a div

div1 = createDivSomehow();

div1.addStyleClass("myPaddingStyle");

div1.addContent(oTable); // (how?)

//add div with Style to Splitter

oSplitterV.addSecondPaneContent(div1);