susurros / evoluspencil

Automatically exported from code.google.com/p/evoluspencil
0 stars 0 forks source link

Grid Size setting #87

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The "Grid Size" schould be a setting.

I try to do it by changing follow in pencil.js:

Pencil.getGridSize = function () {
    if (!Config.get("gridSize")) {
       Config.set("gridSize", "5");
    }
    var gridSize = Config.get("gridSize");
    return {w: gridSize , h: gridSize};
};

But it works not very stable!

The Grid Size should be also a point in the "Page Properties" dialog:
I changed the "PageDetailDialog.xul" to follow:

        <hbox>
            <label value="Grid Size"/>
            <vbox>
                <hbox>
                    <textbox size="3" type="number" min="1" id="gridSize"/>
                    <label value="(pixels)"/>
                </hbox>
            </vbox>
        </hbox>

Thanks, Andreas

Original issue reported on code.google.com by andreas....@gmail.com on 29 Mar 2009 at 11:35

GoogleCodeExporter commented 8 years ago
In 1.2, the grid size setting can be found under General, Grid size or in the 
pencil.config.edit.gridSize advanced property.

Original comment by kanng...@gmail.com on 3 Nov 2010 at 9:12