Skip to content

Commit fc2fd3c

Browse files
committed
Fixed issue on NavigatedView - DataTable
1 parent 763be45 commit fc2fd3c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main/java/gwt/material/design/demo/client/ui/NavigatedView.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323

2424
import com.google.gwt.core.client.GWT;
25+
import com.google.gwt.core.client.Scheduler;
26+
import com.google.gwt.user.client.Timer;
2527
import com.gwtplatform.mvp.client.ViewImpl;
2628
import gwt.material.design.addins.client.scrollfire.MaterialScrollfire;
2729
import gwt.material.design.client.base.MaterialWidget;
@@ -53,10 +55,7 @@ public void buildScrollSpy(List<Links> links, MaterialWidget panel) {
5355
scrollspy.setTop(0);
5456
panel.add(scrollspy);
5557
scrollspy.addAttachHandler(attachEvent -> {
56-
double top = scrollspy.getOffsetHeight() - 270;
57-
double bottom = $("footer").offset().top - 660;
58-
double offset = 0;
59-
MaterialPushpin.apply(scrollspy, top, bottom, offset);
58+
MaterialPushpin.apply(scrollspy, 300.0, 10000.0, 64.0);
6059
});
6160
}
6261

0 commit comments

Comments
 (0)