mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-03 19:57:36 +08:00
ScrollBoxLayout should have empty implementation of requestFocus #PL-4959
This commit is contained in:
parent
0b492aea60
commit
a429902c9a
@ -141,13 +141,6 @@ public class WebScrollBoxLayout extends WebAbstractComponent<Panel> implements S
|
||||
|
||||
@Override
|
||||
public void requestFocus() {
|
||||
Iterator<com.vaadin.ui.Component> componentIterator = getContent().iterator();
|
||||
if (componentIterator.hasNext()) {
|
||||
com.vaadin.ui.Component childComponent = componentIterator.next();
|
||||
if (childComponent instanceof com.vaadin.ui.Component.Focusable) {
|
||||
((com.vaadin.ui.Component.Focusable) childComponent).focus();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
|
@ -103,12 +103,6 @@ public class WebScrollBoxLayout extends WebAbstractComponent<ScrollablePanel> im
|
||||
|
||||
@Override
|
||||
public void requestFocus() {
|
||||
if (component.getComponentIterator().hasNext()) {
|
||||
com.vaadin.ui.Component vComponent = component.getComponentIterator().next();
|
||||
if (vComponent instanceof com.vaadin.ui.Component.Focusable) {
|
||||
((com.vaadin.ui.Component.Focusable) vComponent).focus();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
|
Loading…
Reference in New Issue
Block a user