@mmlogic/components 0.5.7 → 0.5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -162,8 +162,14 @@ export declare class MrdTable {
162
162
  componentDidRender(): void;
163
163
  /** Current rendered header widths, or null when they can't be trusted (header not laid out yet). */
164
164
  private measureColWidths;
165
- /** Locks the columns at their current rendered widths if they aren't locked yet. */
166
- private ensureColWidths;
165
+ /** Re-reads the rendered header widths into colWidths so a drag starts from what is
166
+ * actually on screen — and locks the columns if they weren't locked yet.
167
+ *
168
+ * A table narrower than its container is stretched by `minWidth: 100%`, so the rendered
169
+ * columns are wider than the auto-measured values held in colWidths. Dragging from those
170
+ * stale values moved the grabbed column to the wrong width, and dropping the stretch (which
171
+ * a hand-set width does) then re-laid out every other column at once. */
172
+ private syncColWidths;
167
173
  private setColWidth;
168
174
  private handleResizeStart;
169
175
  private handleResizeMove;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mmlogic/components",
3
- "version": "0.5.7",
3
+ "version": "0.5.8",
4
4
  "description": "Stencil.js web component library for dynamic forms and virtual-scroll data tables",
5
5
  "license": "MIT",
6
6
  "author": "Mosterd",