mirror of
https://github.com/MatMoul/quickdial-webext.git
synced 2024-12-23 15:36:12 +00:00
Bug: Tile instable when resizing to speed
This commit is contained in:
parent
2a12e35320
commit
accb853a85
@ -381,9 +381,12 @@ dial.initGrid = function(){
|
|||||||
return dial.Grid;
|
return dial.Grid;
|
||||||
};
|
};
|
||||||
dial.updateGridLayout = function(){
|
dial.updateGridLayout = function(){
|
||||||
|
var parentWidth = dial.Grid.parentElement.offsetWidth;
|
||||||
|
var parentHeight = dial.Grid.parentElement.offsetHeight;
|
||||||
|
|
||||||
function calc(gridMargin, cellsMargin, borderSize, titleBorderSize){
|
function calc(gridMargin, cellsMargin, borderSize, titleBorderSize){
|
||||||
var fullWidth = dial.Grid.parentElement.offsetWidth - 2 * gridMargin;
|
var fullWidth = parentWidth - 2 * gridMargin;
|
||||||
var fullHeight = dial.Grid.parentElement.offsetHeight - 2 * gridMargin;
|
var fullHeight = parentHeight - 2 * gridMargin;
|
||||||
var cellWidth = fullWidth / app.settings.grid.columns;
|
var cellWidth = fullWidth / app.settings.grid.columns;
|
||||||
var cellHeight = fullHeight / app.settings.grid.rows;
|
var cellHeight = fullHeight / app.settings.grid.rows;
|
||||||
var linkWidth = 0;
|
var linkWidth = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user