Skip to content

Commit

Permalink
Network map
Browse files Browse the repository at this point in the history
  • Loading branch information
tcharp38 committed Jan 9, 2024
1 parent c87b190 commit c32b403
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions desktop/php/AbeilleNetworkMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@
// echo 'background-image: url("/plugins/Abeille/'.$viewImage['path'].'");';
// echo 'width: '.$viewImage['width'].'px;';
// echo 'height: '.$viewImage['height'].'px;';
echo 'width: 100%;';
echo 'height: 100%;';
echo 'width: 500px;';
echo 'height: 500px;';
?>
background-size: contain;
background-repeat: no-repeat;
Expand Down Expand Up @@ -244,6 +244,12 @@ function displayMap(viewLevel) {
elm.style.backgroundImage = 'url("/plugins/Abeille/'+viewImages[viewLevel].path+'")';
console.log("idGraph elm=", elm);

w = viewImages[viewLevel].width;
h = viewImages[viewLevel].height;
// elm.setAttribute("style", "width:"+w+"px;height:"+h+"px");
elm.style.width = w+"px";
elm.style.height = h+"px";

// Get size of 'div' #idGraph to get image size
var rectangle = elm.getBoundingClientRect();
// x = rectangle.left;
Expand Down
2 changes: 1 addition & 1 deletion docs/fr_FR/Changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ChangeLog

- Interne: Cmd: clearPending().
- Zlinky: Mise-à-jour du modèle (2678).
- Placement réseau: Correction affichage plan.
- Placement réseau: Corrections.

240107-BETA-1
-------------
Expand Down

0 comments on commit c32b403

Please sign in to comment.