Ticket #8349 (closed bug: fixed)

Opened 2 years ago

Last modified 2 years ago

Draggable: Incorrect dimensions used if .ui-draggable-dragging changes dimensions

Reported by: non4eg Owned by: non4eg
Priority: minor Milestone: 1.8.21
Component: ui.draggable Version: 1.8.20
Keywords: Cc:
Blocking: Blocked by:

Description

If a wide drag element is placed into some fixed-width container, it is not dropped into the container and it doesn’t show any event or error. The drag element has some styles (.ui-draggable-dragging) with max-width property applied. This “feature” is not observed if the drag element initially has a width property value that is less than maximum.

Change History

comment:1 follow-up: ↓ 2 Changed 2 years ago by scott.gonzalez

  • Owner set to non4eg
  • Status changed from new to pending

Please provide a reduced test case showing the problem.

comment:2 in reply to: ↑ 1 Changed 2 years ago by non4eg

  • Status changed from pending to new

Replying to scott.gonzalez:

Please provide a reduced test case showing the problem.

[DELETED]

Last edited 2 years ago by scott.gonzalez (previous) (diff)

comment:3 follow-up: ↓ 5 Changed 2 years ago by scott.gonzalez

Whoa, please read the red box that says not to paste large blocks of code in to tickets.

comment:4 Changed 2 years ago by scott.gonzalez

comment:5 in reply to: ↑ 3 Changed 2 years ago by non4eg

Replying to scott.gonzalez:

Whoa, please read the red box that says not to paste large blocks of code in to tickets.

Sorry :)

comment:6 Changed 2 years ago by scott.gonzalez

  • Status changed from new to open
  • Summary changed from Wide element Drag-n-Drop doesn't work properly to Draggable: Incorrect dimensions used if .ui-draggable-dragging changes dimensions

An actually reduced test case:  http://jsbin.com/otarik/2/edit

comment:7 Changed 2 years ago by Viktar Varvanovich

  • Status changed from open to closed
  • Resolution set to fixed

Draggable: Apply ui-draggable-dragging class prior to calculating dimensions. Fixes #8349 - Draggable: Incorrect dimensions used if .ui-draggable-dragging changes dimensions

Changeset: a0c18ea25086ed07634baff5b4fea46e69aad38e

comment:8 Changed 2 years ago by Viktar Varvanovich

Draggable: Apply ui-draggable-dragging class prior to calculating dimensions. Fixes #8349 - Draggable: Incorrect dimensions used if .ui-draggable-dragging changes dimensions (cherry picked from commit a0c18ea25086ed07634baff5b4fea46e69aad38e)

Changeset: 168a21d5ef3e0df0f03aa860ae798a8f7de35210

comment:9 Changed 2 years ago by scott.gonzalez

  • Milestone changed from 1.9 to 1.8.21
Note: See TracTickets for help on using tickets.