bug4283 Renamed method and removed no longer needed comment and log

statements
This commit is contained in:
Benjamin Barth committed 2017-10-16 11:03:18 +02:00
1 parent f5ef95beaf
commit bb9ac6c7d1
1 file changed
+2 -4
@@ -77,7 +77,7 @@ public class OverlayAssistantScrollPanel extends ScrollPanel {
// add 15 pixel spacing between bottom scrollpanel and scrolled content // add 15 pixel spacing between bottom scrollpanel and scrolled content
this.getElement().getStyle().setPaddingBottom(25, Unit.PX); this.getElement().getStyle().setPaddingBottom(25, Unit.PX);
contentToSyncWith = contentToScroll.getElement(); contentToSyncWith = contentToScroll.getElement();
this.hasMutationObservationCapability = weCanObserve(); this.hasMutationObservationCapability = hasMutationObservationCapability();
overlayWidget = uiBinder.createAndBindUi(this); overlayWidget = uiBinder.createAndBindUi(this);
} }
@@ -116,7 +116,6 @@ public class OverlayAssistantScrollPanel extends ScrollPanel {
registrations.add(this.addScrollHandler(new ScrollHandler() { registrations.add(this.addScrollHandler(new ScrollHandler() {
@Override @Override
public void onScroll(ScrollEvent event) { public void onScroll(ScrollEvent event) {
GWT.log("scroll initiated by table");
if (ignoreTableScrollEvent) { if (ignoreTableScrollEvent) {
ignoreTableScrollEvent = false; ignoreTableScrollEvent = false;
} else { } else {
@@ -126,7 +125,6 @@ public class OverlayAssistantScrollPanel extends ScrollPanel {
} }
})); }));
createObserverForCurrentChild(); createObserverForCurrentChild();
// only bind reverse scrolling through overlay scrollpanel in desktop
DOM.sinkEvents(overlayScrollPanelUi, Event.ONSCROLL); DOM.sinkEvents(overlayScrollPanelUi, Event.ONSCROLL);
DOM.setEventListener(overlayScrollPanelUi, new EventListener() { DOM.setEventListener(overlayScrollPanelUi, new EventListener() {
@Override @Override
@@ -272,7 +270,7 @@ public class OverlayAssistantScrollPanel extends ScrollPanel {
/** /**
* Check if the browser provides the mutation observer API. * Check if the browser provides the mutation observer API.
*/ */
private native boolean weCanObserve() /*-{ private native boolean hasMutationObservationCapability() /*-{
if (MutationObserver) { if (MutationObserver) {
return true; return true;
} }