api: use default border size in case of inherit

This commit is contained in:
shagu
2020-02-28 15:59:15 +01:00
parent 4d076dbac2
commit c85f4b1849
+2
View File
@@ -802,6 +802,8 @@ function pfUI.api.GetBorderSize(pref)
else
-- add new borders to the pfUI tree
local raw = tonumber(pfUI_config.appearance.border[pref])
if raw == -1 then raw = 3 end
local scaled = raw * GetPerfectPixel()
pfUI.borders = { raw, scaled }