add .id-container class to container

fixes #1228
This commit is contained in:
Ansis Brammanis
2013-04-02 14:03:46 -04:00
parent 0c5424aa3f
commit 7e85fed027
4 changed files with 5 additions and 4 deletions

View File

@@ -18,7 +18,7 @@ body {
font-size: 15px;
}
#id-container {
.id-container {
height: 100%;
width: 100%;
position: fixed;

View File

@@ -23,7 +23,7 @@ iD.behavior.Lasso = function(context) {
function mousemove() {
if (!lasso) {
lasso = iD.ui.Lasso().a(mouse);
lasso = iD.ui.Lasso(context).a(mouse);
context.surface().call(lasso);
}

View File

@@ -126,6 +126,7 @@ window.iD = function () {
context.container = function(_) {
if (!arguments.length) return container;
container = _;
container.classed('id-container', true);
return context;
};

View File

@@ -6,7 +6,7 @@ iD.ui.Lasso = function() {
function lasso(selection) {
d3.select('#id-container').classed('lasso', true);
context.container().classed('lasso', true);
group = selection.append('g')
.attr('class', 'lasso hide');
@@ -55,7 +55,7 @@ iD.ui.Lasso = function() {
d3.select(this).remove();
}));
}
d3.select('#id-container').classed('lasso', false);
context.container().classed('lasso', false);
};
return lasso;