Skip to content

Commit

Permalink
fixed issue when resizing widget from the left side
Browse files Browse the repository at this point in the history
- closes #266
  • Loading branch information
foxriver76 committed Jan 16, 2024
1 parent 924145f commit 1e10935
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ E.g., if it was used in a menu and the menu is red, the circle would be red.
-->
## Changelog
### **WORK IN PROGRESS**
* (foxriver76) fixed issue when resizing widget from the left side
* (foxriver76) added select box to dimension attributes if multiple widgets selected

### 2.9.18 (2024-01-15)
Expand Down
5 changes: 3 additions & 2 deletions src/src/Vis/visBaseWidget.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class VisBaseWidget extends React.Component {

const widget = props.context.views[props.view].widgets[props.id];
this.refService = React.createRef();
/** @type {'left' | 'right' | 'top' | 'bottom' | 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right' | boolean} */
this.resize = false;
this.widDiv = null;
const multiViewWidget = props.id.includes('_');
Expand Down Expand Up @@ -654,8 +655,8 @@ class VisBaseWidget extends React.Component {
wid: this.props.id,
view: this.props.view,
style: {
top: this.state.style.top,
left: this.state.style.left,
top: this.refService.current.style.top,
left: this.refService.current.style.left,
width: this.refService.current.style.width,
height: this.refService.current.style.height,
},
Expand Down

0 comments on commit 1e10935

Please sign in to comment.