1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

[SpeedDial] Properly align

This commit is contained in:
Mladen Pejaković 2014-05-30 14:55:17 +02:00 committed by David Rosca
parent 0f8bbe4777
commit 1a8ca567f9

View File

@ -317,8 +317,8 @@ function alignPage() {
var width = $(window).width();
var height = $(window).height();
var boxWidth = Math.floor(DIAL_WIDTH + 30);
var boxHeight = Math.floor(Math.round(DIAL_WIDTH / 1.54) + 40);
var boxWidth = Math.floor(DIAL_WIDTH + 12);
var boxHeight = Math.floor(Math.round(DIAL_WIDTH / 1.54) + 22);
var maxBoxes = Math.floor(width / boxWidth);
if (maxBoxes > MAX_PAGES_ROW) maxBoxes = MAX_PAGES_ROW;