diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/Buttons.hx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/Buttons.hx b/src/client/Buttons.hx index f3a2474..82054ab 100644 --- a/src/client/Buttons.hx +++ b/src/client/Buttons.hx @@ -234,8 +234,8 @@ class Buttons { checkboxCache.checked = settings.checkedCache.contains(playerType); final panel = getEl("#addfromurl"); - final oldH = panel.style.height; // save for animation - panel.style.height = ""; // to calculate height from content + final oldH = panel.style.height; + panel.style.height = ""; final newH = Utils.outerHeight(panel) + "px"; panel.style.height = oldH; Timer.delay(() -> panel.style.height = newH, 0); |
