CELayoutEditor--SnapToGrid problem
Posted: Wed May 23, 2007 09:25
Hi,
I've used the latest version of 0.5b
and found that the child component can't snap to the grid correctly,
but the parent is correct.
May I ask in the EditorCanvas.cpp
what is this line do with '-8'?
y0 = y1 = 1.0f - ((GLfloat)(i * step) / (mCurrentHeight-8 ) * 2.0f);
this seems cause the grid painting wrong,also x.
Another problem, can I use mouse to let
the window snap to the grid when moving?
I've used the latest version of 0.5b
and found that the child component can't snap to the grid correctly,
but the parent is correct.
May I ask in the EditorCanvas.cpp
what is this line do with '-8'?
y0 = y1 = 1.0f - ((GLfloat)(i * step) / (mCurrentHeight-8 ) * 2.0f);
this seems cause the grid painting wrong,also x.
Another problem, can I use mouse to let
the window snap to the grid when moving?