Skip to content

Width is not calculated correctly for the resize buttons #226

@jkevingutierrez

Description

@jkevingutierrez

Found a bug? Please fill out the sections below. 👍

Issue Summary

The sizes defined here are not being applied correctly. The width is always 2px smaller than the real value

Steps to Reproduce

  1. Set up Django Pattern Library
  2. Click on the resize buttons
  3. See how the width is always 2px smaller than the real value

For example, when I click the S button it should resize to 320px but it is really resizing to 318px

image

Same for other sizes:

image
image

Technical details

  • Python version: 3.9.13
  • Django version: 3.2.18
  • Browser version: Chrome 114

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions