Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import org.eclipse.wb.core.gef.policy.PolicyUtils;
import org.eclipse.wb.core.model.IAbstractComponentInfo;
import org.eclipse.wb.core.model.ObjectInfo;
import org.eclipse.wb.draw2d.Figure;
import org.eclipse.wb.draw2d.FigureUtils;
import org.eclipse.wb.gef.core.IEditPartViewer;
import org.eclipse.wb.gef.graphical.policies.LayoutEditPolicy;
Expand All @@ -24,6 +23,7 @@
import org.eclipse.wb.internal.core.utils.ui.DrawUtils;

import org.eclipse.draw2d.ColorConstants;
import org.eclipse.draw2d.Figure;
import org.eclipse.draw2d.FigureListener;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.Polyline;
Expand Down Expand Up @@ -160,7 +160,13 @@ public final void showGridFeedback() {
return;
}
// create grid figure
m_gridFigure = new Figure();
m_gridFigure = new Figure() {
// Grid is drawn relative to the top-left corner of the container
@Override
protected boolean useLocalCoordinates() {
return true;
}
};
// install listener on root model figure
{
ObjectInfo rootObjectInfo = ((ObjectInfo) getHost().getModel()).getRoot();
Expand Down
Loading