Skip to content

Commit

Permalink
Corrected spelling error, removed !important and commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
dhochbaum-dcp committed May 8, 2024
1 parent f855a20 commit 06a08c6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions app/components/main-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default class MainMap extends Component {

highlightedLayerId = null;

widowResize() {
windowResize() {
return new Promise((resolve) => {
setTimeout(() => {
const resizeEvent = window.document.createEvent('UIEvents');
Expand Down Expand Up @@ -273,6 +273,6 @@ export default class MainMap extends Component {

this.set('printSvc.enabled', true);

await this.widowResize();
await this.windowResize();
}
}
6 changes: 3 additions & 3 deletions app/components/print-view-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default class PrintViewControls extends Component {

@service metrics;

widowResize() {
windowResize() {
return new Promise((resolve) => {
setTimeout(() => {
const resizeEvent = window.document.createEvent('UIEvents');
Expand All @@ -35,10 +35,10 @@ export default class PrintViewControls extends Component {

this.set('printSvc.enabled', false);

await this.widowResize();
await this.windowResize();
}

async click() {
await this.widowResize();
await this.windowResize();
}
}
4 changes: 2 additions & 2 deletions app/controllers/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default class ApplicationController extends Controller.extend(

@tracked layerGroupsStorage;

widowResize() {
windowResize() {
return new Promise((resolve) => {
setTimeout(() => {
const resizeEvent = window.document.createEvent('UIEvents');
Expand Down Expand Up @@ -210,7 +210,7 @@ export default class ApplicationController extends Controller.extend(
mapContainer.setAttribute('class', 'map-container');
else mapContainer.setAttribute('class', 'map-container full-width');

await this.widowResize();
await this.windowResize();

this.metrics.trackEvent('MatomoTagManager', {
category: 'Toggled Layer Menu Visibility',
Expand Down
3 changes: 1 addition & 2 deletions app/styles/layouts/_l-default.scss
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ body {
}

&.full-width {
width: 100% !important;
width: 100%;
}

}
Expand Down Expand Up @@ -256,7 +256,6 @@ body.index {
background-color: $white;
margin-left: -4px;
padding: 0 rem-calc(6) rem-calc(6);
// box-shadow: -4px 4px 0 rgba(0,0,0,0.1);
}
@include breakpoint(xxlarge) {
left: 18rem;
Expand Down

0 comments on commit 06a08c6

Please sign in to comment.