Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:ShipBattleCardKai
(view source)
Revision as of 04:49, 28 March 2019
108 bytes added
,
5 years ago
m
no edit summary
Line 74:
Line 74:
local function scaleLayer(hd, layer)
local function scaleLayer(hd, layer)
−
local top, left, width, height = layer.top, layer.left, layer.width, layer.height or layer.width
+
local top, left
, right
, width, height = layer.top, layer.left
, layer.right
, layer.width, layer.height or layer.width
layer.style = layer.style or {}
layer.style = layer.style or {}
if top then
if top then
Line 81:
Line 81:
if left then
if left then
layer.style.left = left * (hd and 1.5 or 1) .. 'px'
layer.style.left = left * (hd and 1.5 or 1) .. 'px'
+
end
+
if right then
+
layer.style.right = right * (hd and 1.5 or 1) .. 'px'
end
end
if width then
if width then
がか
cssedit, gkautomate
7,064
edits