Skip to content

Commit

Permalink
Merge pull request #321 from gtt-project/dkastl/issue320
Browse files Browse the repository at this point in the history
Fixes zoom to feature issue when clicking "Quote" link
  • Loading branch information
dkastl authored Jun 28, 2024
2 parents 201e8d9 + b2308f6 commit 2df4ea3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"style-loader": "^4.0.0",
"ts-loader": "^9.5.1",
"typescript": "^5.4.5",
"webpack": "^5.92.0",
"webpack": "^5.92.1",
"webpack-cli": "^5.1.4"
}
}
6 changes: 3 additions & 3 deletions src/components/gtt-client/init/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,17 @@ function handleIssueSelection(this: any): void {


/**
* Handles the click event on the edit icon to update the map size when the editable form is made visible.
* Handles the click event on the edit/comment icon to update the map size when the editable form is made visible.
*/
function handleEditIcon(this: any): void {
document.querySelectorAll('div.contextual a.icon-edit').forEach((element: HTMLAnchorElement) => {
document.querySelectorAll('div.contextual a.icon-edit, div.contextual a.icon-comment').forEach((element: HTMLAnchorElement) => {
element.addEventListener('click', () => {
setTimeout(() => {
this.maps.forEach((m: any) => {
m.updateSize();
});
zoomToExtent.call(this);
}, 200);
}, 500);
});
});
}
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1361,10 +1361,10 @@ webpack-sources@^3.2.3:
resolved "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz"
integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==

webpack@^5.92.0:
version "5.92.0"
resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.92.0.tgz#cc114c71e6851d220b1feaae90159ed52c876bdf"
integrity sha512-Bsw2X39MYIgxouNATyVpCNVWBCuUwDgWtN78g6lSdPJRLaQ/PUVm/oXcaRAyY/sMFoKFQrsPeqvTizWtq7QPCA==
webpack@^5.92.1:
version "5.92.1"
resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.92.1.tgz#eca5c1725b9e189cffbd86e8b6c3c7400efc5788"
integrity sha512-JECQ7IwJb+7fgUFBlrJzbyu3GEuNBcdqr1LD7IbSzwkSmIevTm8PF+wej3Oxuz/JFBUZ6O1o43zsPkwm1C4TmA==
dependencies:
"@types/eslint-scope" "^3.7.3"
"@types/estree" "^1.0.5"
Expand Down

0 comments on commit 2df4ea3

Please sign in to comment.