We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd605d5 commit c98f5e0Copy full SHA for c98f5e0
field/lib/field.ts
@@ -195,7 +195,7 @@ export class Field extends LitElement {
195
// scale and compensate for tracking and overflow.
196
// (use scrollWidth instead of width to account for clipped labels)
197
const scale = restingScrollWidth / floatingScrollWidth;
198
- const xDelta = floatingX - restingX;
+ const xDelta = restingX - floatingX;
199
// The line-height of the resting and floating label are different. When
200
// we move the floating label down to the resting label's position, it won't
201
// exactly match because of this. We need to adjust by half of what the
0 commit comments