SplitPanel margin not working

Hi,

I’m trying to turn on margins on all four sides of a SplitPanel. I’m doing that via setMargin(true). However, the margins are not appearing:

   @Override
   public void init()
   {
      Window mainWindow = new Window(WINDOW_TITLE);
      AbstractSplitPanel masterView = new VerticalSplitPanel();
      masterView.setMargin(true);
      mainWindow.setContent(masterView);
      
      setMainWindow(mainWindow);
   }

I’m using 6.5.2. I’ve tried the above with SplitPanel, VerticalSplitPanel and HorizontalSplitPanel; they all seem to ignore the setMargin(true) request.

As a temp fix, I currently wrap the panel with a CssLayout, and turn on margins on the CssLayout instead. However, this unnecessarily complicates the layout.

Any suggestions?

cheers.

Hi,

SplitPanel doesn’t support margins currently. There is a ticket about it:
#2575
.

I see. Thanks.