Fix canvas size when grid display is active

- Dynamic resizing of canvas when display_grid is activated/deactivated
 - Adding a main-wrapper to get a perfect alignement at the top and
bottom the application screen
 - fix DPI update on page load (independent of grid option).
 - fix available width for DPI calculation (using margin-box, was using
only content before)
This commit is contained in:
Vince
2013-06-19 19:01:12 +02:00
parent 6cb145ae34
commit 4618cb643a
3 changed files with 126 additions and 93 deletions

View File

@ -12,39 +12,48 @@ body {
* Application layout
*/
.main-wrapper {
position: absolute;
top: 5px;
right: 0;
bottom: 5px;
left: 0;
}
.column-wrapper {
text-align: center;
font-size: 0;
position: absolute;
left: 100px; /* Reserve room for tools on the left edge of the screen. */
top: 10px;
top: 0;
right: 50px; /* Reserve room for actions on the right edge of the screen. */
bottom: 10px;
bottom: 0;
}
.column {
display: inline-block;
}
.left-column {
display: inline-block;
vertical-align: top;
height: 100%;
margin-right: 7px;
}
.main-column {
display: inline-block;
height: 100%;
position: relative;
}
.drawing-canvas-container {
font-size: 0;
}
.right-column {
display: inline-block;
vertical-align: top;
margin-left: 10px;
}
.drawing-canvas-container {
font-size: 0;
}
.sticky-section {
display: table;
height: 100%;