Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Commit

Permalink
Updated padding algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanLua committed Apr 5, 2023
1 parent 8b51929 commit 1ab26f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Shime.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ local function createShimmer(parent: GuiObject): Frame
if frame.Parent:FindFirstChildOfClass("UIPadding") then
local padding = frame.Parent:FindFirstChildOfClass("UIPadding")
frame.Size = UDim2.new(
1,
1 / (1 - (padding.PaddingLeft.Scale + padding.PaddingRight.Scale)),
padding.PaddingLeft.Offset + padding.PaddingRight.Offset,
1,
1 / (1 - padding.PaddingTop.Scale - padding.PaddingBottom.Scale),
padding.PaddingTop.Offset + padding.PaddingBottom.Offset
)
end
Expand Down

0 comments on commit 1ab26f6

Please sign in to comment.