From 4028718760ec3a6e2a73f56cfa72de08efc1250c Mon Sep 17 00:00:00 2001 From: John Ahlroos Date: Thu, 1 Nov 2012 09:57:21 +0200 Subject: Fixed Combobox popup positioning problem when located inside a PopupView #9768 Change-Id: I5c256483fcb5050b08eb7c481676385789e96f09 --- .../combobox/ComboboxInPopupViewWithItems.html | 42 ++++++++++++++++++++ .../combobox/ComboboxInPopupViewWithItems.java | 45 ++++++++++++++++++++++ 2 files changed, 87 insertions(+) create mode 100644 uitest/src/com/vaadin/tests/components/combobox/ComboboxInPopupViewWithItems.html create mode 100644 uitest/src/com/vaadin/tests/components/combobox/ComboboxInPopupViewWithItems.java (limited to 'uitest/src') diff --git a/uitest/src/com/vaadin/tests/components/combobox/ComboboxInPopupViewWithItems.html b/uitest/src/com/vaadin/tests/components/combobox/ComboboxInPopupViewWithItems.html new file mode 100644 index 0000000000..1b7b42a4e3 --- /dev/null +++ b/uitest/src/com/vaadin/tests/components/combobox/ComboboxInPopupViewWithItems.html @@ -0,0 +1,42 @@ + + + + + + +New Test + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
New Test
open/run/com.vaadin.tests.components.combobox.ComboboxInPopupViewWithItems?restartApplication
mouseClickvaadin=runcomvaadintestscomponentscomboboxComboboxInPopupViewWithItems::/VVerticalLayout[0]/VOrderedLayout$Slot[1]/VVerticalLayout[0]/VOrderedLayout$Slot[1]/VPopupView[0]26,6
mouseClick//input[@type='text']52,13
pressSpecialKey//input[@type='text']down
screenCapturepopup-open
+ + diff --git a/uitest/src/com/vaadin/tests/components/combobox/ComboboxInPopupViewWithItems.java b/uitest/src/com/vaadin/tests/components/combobox/ComboboxInPopupViewWithItems.java new file mode 100644 index 0000000000..3aaae7e6dc --- /dev/null +++ b/uitest/src/com/vaadin/tests/components/combobox/ComboboxInPopupViewWithItems.java @@ -0,0 +1,45 @@ +package com.vaadin.tests.components.combobox; + +import java.util.Arrays; + +import com.vaadin.tests.components.TestBase; +import com.vaadin.ui.ComboBox; +import com.vaadin.ui.Component; +import com.vaadin.ui.PopupView; +import com.vaadin.ui.TextArea; + +public class ComboboxInPopupViewWithItems extends TestBase { + + @Override + protected void setup() { + addComponent(new TextArea("Some component")); + addComponent(new PopupView(new PopupContent())); + + } + + @Override + protected String getDescription() { + return "Combobox popup should be in the correct place even when it is located inside a PopupView"; + } + + @Override + protected Integer getTicketNumber() { + return 9768; + } + + class PopupContent implements PopupView.Content { + + private final ComboBox cb = new ComboBox(null, Arrays.asList("Item 1", + "Item 2", "Item 3")); + + @Override + public String getMinimizedValueAsHTML() { + return "click here"; + } + + @Override + public Component getPopupComponent() { + return cb; + } + } +} -- cgit v1.2.3