Преглед на файлове

Code cleanup

tags/7.0.0.alpha2
Artur Signell преди 12 години
родител
ревизия
49c33ff2d0
променени са 1 файла, в които са добавени 10 реда и са изтрити 8 реда
  1. 10
    8
      src/com/vaadin/ui/AbstractComponent.java

+ 10
- 8
src/com/vaadin/ui/AbstractComponent.java Целия файл

@@ -438,14 +438,16 @@ public abstract class AbstractComponent implements Component, MethodEventSource
* @see com.vaadin.ui.Component#setVisible(boolean)
*/
public void setVisible(boolean visible) {
if (getState().isVisible() != visible) {
getState().setVisible(visible);
requestRepaint();
if (getParent() != null) {
// Must always repaint the parent (at least the hierarchy) when
// visibility of a child component changes.
getParent().requestRepaint();
}
if (getState().isVisible() == visible) {
return;
}

getState().setVisible(visible);
requestRepaint();
if (getParent() != null) {
// Must always repaint the parent (at least the hierarchy) when
// visibility of a child component changes.
getParent().requestRepaint();
}
}


Loading…
Отказ
Запис