blob: 2b5404944ba3280bd66eaaac9e3840bb1dc3605b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
package com.vaadin.tests.components.select;
import com.vaadin.tests.components.TestBase;
import com.vaadin.tests.util.TestUtils;
import com.vaadin.ui.Button;
import com.vaadin.v7.ui.Select;
public class StylingPopupOpener extends TestBase {
@Override
protected void setup() {
TestUtils.injectCSS(getMainWindow(),
".v-filterselect-mystyle .v-filterselect-button { width: 50px; background-color: red; } ");
final Select select = new Select();
addComponent(select);
addComponent(new Button("Update style",
event -> select.setStyleName("mystyle")));
}
@Override
protected String getDescription() {
return "ComboBox popup opener width is not updated when the style or theme changes";
}
@Override
protected Integer getTicketNumber() {
return 8801;
}
}
|