diff --git a/src/renderer/widgets/PasswordInputField.cpp b/src/renderer/widgets/PasswordInputField.cpp index 1212b66b..658249fc 100644 --- a/src/renderer/widgets/PasswordInputField.cpp +++ b/src/renderer/widgets/PasswordInputField.cpp @@ -4,6 +4,7 @@ #include CPasswordInputField::CPasswordInputField(const Vector2D& viewport_, const std::unordered_map& props) : shadow(this, props, viewport_) { + size = std::any_cast(props.at("size")); inner = std::any_cast(props.at("inner_color")); outer = std::any_cast(props.at("outer_color")); outThick = std::any_cast(props.at("outline_thickness")); @@ -23,9 +24,7 @@ CPasswordInputField::CPasswordInputField(const Vector2D& viewport_, const std::u viewport = viewport_; auto POS__ = std::any_cast(props.at("position")); - auto SIZE__ = std::any_cast(props.at("size")); pos = {POS__.x, POS__.y}; - size = {SIZE__.x, SIZE__.y}; configPos = pos; configSize = size;