Skip to content

Commit

Permalink
minor spacing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hplato committed Jul 17, 2016
1 parent 3900acd commit 856b9df
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions web/ia7/include/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -1689,9 +1689,29 @@ var fp_reposition_entities = function(){
"left": newx
};
};
var nwidth = $("#fp_graphic").get(0).naturalWidth;
fp_scale = Math.round( width/nwidth * 100);
// var nwidth = $("#fp_graphic").get(0).naturalWidth;
// var nwidth = $("#fp_graphic").width();
var nwidth;
//There are 2 sizing jumps in bootstrap.min.css one at 992 and another at 1200
//Scale icons if less than 991
//1-991
//@992 = 821 (171)
//@993 = 822
//@995 = 824
//@994 = 828 (166)
//@1100 = 991 (109)
//@1200 = 790
if (width < 992) {
nwidth = 992;
} else if (width < 1200) {
nwidth = 822;
} else {
nwidth = 790;
}

fp_scale = Math.round( width/nwidth * 100);

console.log("width="+width+" nwidth="+nwidth+" scale="+fp_scale);
// update the location of all the objects...
$(".floorplan_item").each(function(index) {
var classstr = $(this).attr("class");
Expand Down

0 comments on commit 856b9df

Please sign in to comment.