HorizontalSplitPanel height

I have a HorizontalSplitPanel with two panels which both contain a VerticalLayout (height and width 100%) with search results (therefore the height of both is very high)
When the left sides height is larger everything is displayed correctly → The HorizontalSplitPanel has the computed height from the firstComponent and a Scrollbar is on the surrounding panel.
My problem is when the right side is larger the HorizontalSplitPanels height is also computed from the firstComponent and therefore to small for the right side panel which leads to scrollbars for the right side panel which is not desired in my application (there must only be one scrollbar on the right browser side as on standard websites)
Is there a way get the height for the HorizontalSplitPanel computed by the larger of the two components?

Sounds like a bug to me: This shouldn’t depend on which side contains larger content. You might want to
file a ticket
on it.

I’m having the same issue.
Here is a simple application that can produce this bug:

package com.example.myvaadintests;

import com.vaadin.Application;
import com.vaadin.terminal.Sizeable;
import com.vaadin.ui.HorizontalSplitPanel;
import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;

public class TestHorizontalSplitPanel extends Application
    public void init()
        VerticalLayout mainLayout = new VerticalLayout();
        Window mainWindow = new Window("Myvaadintests Application", mainLayout);

        HorizontalSplitPanel splitPanel = new HorizontalSplitPanel();
        splitPanel.setWidth(100, Sizeable.UNITS_PERCENTAGE);
        splitPanel.setSplitPosition(30, Sizeable.UNITS_PERCENTAGE);

        Panel leftPanel = new Panel();
        leftPanel.setHeight(100, Sizeable.UNITS_PIXELS);
        Panel rightPanel = new Panel();
        rightPanel.setHeight(300, Sizeable.UNITS_PIXELS);
        rightPanel.addComponent(new Label("TEST LABEL"));

Here is what I see as the result:

I have tested my application with both 6.6.7 and 6.7.4 versions of Vaadin. I’ll go and create a ticket for it as it sounds like a bug.


UPDATE: It looks like there is a already
a ticket
created for this issue. Any ideas why undefined size is not supported by split panels?

[quote=Houman Atashbar]
UPDATE: It looks like there is a already
a ticket
created for this issue. Any ideas why undefined size is not supported by split panels?
[/quote]Because it hasn’t been implemented yet? :wink: Seriously, though: Vaadin’s R&D team does not seem to have consensus yet on how this should behave. If you would like to contribute to the discussion, please comment on
ticket #6024
. (The ticket you mentioned is a duplicate of that one.)

Hi All, any chance to get this bug fixed in the near future ? I’m facing the same issue in Vaadin 7.3.0, which is the latest version.

This should work in 7.3 with the Valo theme. You can test it here: