mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
[SpeedDial] Properly align
This commit is contained in:
parent
0f8bbe4777
commit
1a8ca567f9
@ -317,8 +317,8 @@ function alignPage() {
|
|||||||
|
|
||||||
var width = $(window).width();
|
var width = $(window).width();
|
||||||
var height = $(window).height();
|
var height = $(window).height();
|
||||||
var boxWidth = Math.floor(DIAL_WIDTH + 30);
|
var boxWidth = Math.floor(DIAL_WIDTH + 12);
|
||||||
var boxHeight = Math.floor(Math.round(DIAL_WIDTH / 1.54) + 40);
|
var boxHeight = Math.floor(Math.round(DIAL_WIDTH / 1.54) + 22);
|
||||||
|
|
||||||
var maxBoxes = Math.floor(width / boxWidth);
|
var maxBoxes = Math.floor(width / boxWidth);
|
||||||
if (maxBoxes > MAX_PAGES_ROW) maxBoxes = MAX_PAGES_ROW;
|
if (maxBoxes > MAX_PAGES_ROW) maxBoxes = MAX_PAGES_ROW;
|
||||||
|
Loading…
Reference in New Issue
Block a user