style.setMarginLeft(-adjustByRelativeLeftBodyMargin(), Unit.PX);
style.setMarginTop(-adjustByRelativeTopBodyMargin(), Unit.PX);
super.setPopupPosition(left, top);
- sizeUpdated(isAnimationEnabled() ? 0 : 1);
+ sizeOrPositionUpdated(isAnimationEnabled() ? 0 : 1);
}
private IFrameElement getShimElement() {
if (isAnimationEnabled()) {
new ResizeAnimation().run(POPUP_PANEL_ANIMATION_DURATION);
} else {
- sizeUpdated(1.0);
+ sizeOrPositionUpdated(1.0);
}
Util.runIE7ZeroSizedBodyFix();
}
@Override
public void setWidth(String width) {
super.setWidth(width);
- sizeUpdated(1.0);
+ sizeOrPositionUpdated(1.0);
}
@Override
public void setHeight(String height) {
super.setHeight(height);
- sizeUpdated(1.0);
+ sizeOrPositionUpdated(1.0);
}
/**
* size of overlay without using normal 'setWidth(String)' and
* 'setHeight(String)' methods (if not calling super.setWidth/Height).
*
- * @deprecated Call {@link #sizeUpdated()} instead.
+ * @deprecated Call {@link #sizeOrPositionUpdated()} instead.
*/
@Deprecated
protected void updateShadowSizeAndPosition() {
- sizeUpdated();
+ sizeOrPositionUpdated();
}
- protected void sizeUpdated() {
- sizeUpdated(1.0);
+ protected void sizeOrPositionUpdated() {
+ sizeOrPositionUpdated(1.0);
}
/**
* A value between 0.0 and 1.0, indicating the progress of the
* animation (0=start, 1=end).
*/
- private void sizeUpdated(final double progress) {
+ private void sizeOrPositionUpdated(final double progress) {
// Don't do anything if overlay element is not attached
if (!isAttached()) {
return;
protected class ResizeAnimation extends Animation {
@Override
protected void onUpdate(double progress) {
- sizeUpdated(progress);
+ sizeOrPositionUpdated(progress);
}
}
import com.vaadin.terminal.gwt.client.Util;
import com.vaadin.terminal.gwt.client.VCaption;
import com.vaadin.terminal.gwt.client.VCaptionWrapper;
+import com.vaadin.terminal.gwt.client.VConsole;
import com.vaadin.terminal.gwt.client.VTooltip;
import com.vaadin.terminal.gwt.client.ui.ShortcutActionHandler.ShortcutActionHandlerOwner;
import com.vaadin.terminal.gwt.client.ui.richtextarea.VRichTextArea;
@Override
public void hide(boolean autoClosed) {
+ VConsole.log("Hiding popupview");
hiding = true;
syncChildren();
unregisterPaintables();
}
public boolean requestLayout(Set<Paintable> child) {
- popup.sizeUpdated();
+ popup.sizeOrPositionUpdated();
return true;
}