Compare commits
No commits in common. "d661e5f3f97f92e0a46d6a67fc856e9c8a95a080" and "0e13b98b7fe3bc6f144d0cc6fa5154c25eba8d78" have entirely different histories.
d661e5f3f9
...
0e13b98b7f
@ -25,10 +25,10 @@ export class ZoomToExtentComponent implements OnChanges {
|
|||||||
let threshold = 40 * rem;
|
let threshold = 40 * rem;
|
||||||
var left = 1 * rem;
|
var left = 1 * rem;
|
||||||
var right = 1 * rem;
|
var right = 1 * rem;
|
||||||
var bottom = Math.round((size[1] / 2) + (4*rem));
|
var bottom = Math.round(size[1] / 2);
|
||||||
var top = 1 * rem;
|
var top = 1 * rem;
|
||||||
if (size[0] > threshold) {
|
if (size[0] > threshold) {
|
||||||
bottom = 5 * rem;
|
bottom = 1 * rem;
|
||||||
left = 23 * rem;
|
left = 23 * rem;
|
||||||
}
|
}
|
||||||
options.padding = [top, right, bottom, left];
|
options.padding = [top, right, bottom, left];
|
||||||
|
Loading…
Reference in New Issue
Block a user