Make sure container has dimensions the first time

This commit is contained in:
Bryan Housel
2018-02-14 21:53:56 -05:00
parent 0381bad22d
commit dbdbad29c2
2 changed files with 5 additions and 1 deletions

View File

@@ -1873,6 +1873,10 @@ input[type=number] {
position: relative;
height: 370px;
}
/* zero width space, so container takes up space */
.form-field-restrictions .restriction-container:after {
content: '\200b';
}
.form-field-restrictions svg.surface {
width: 100%;

View File

@@ -240,7 +240,7 @@ export function uiFieldRestrictions(field, context) {
var filter = utilFunctor(true);
var projection = geoRawMercator();
var d = utilGetDimensions(_container);
var d = utilGetDimensions(selection);
var c = geoVecScale(d, 0.5);
var z = 22;