Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Allow selection in general, and disable it specifically

  • Loading branch information...
commit a3f91e2602e1218103af44095b68c357f541d6e5 1 parent 1e37d22
@hofmeister authored
Showing with 4 additions and 2 deletions.
  1. +3 −1 js/lib/draw.js
  2. +1 −1  js/lib/widget.js
View
4 js/lib/draw.js
@@ -19,7 +19,8 @@ $wb.draw.Canvas = $wb.Class('Canvas',{
tmpl:$wb.template.draw.canvas,
layout:function() {
var target = this.target();
- this.elm().find('.wb-layer').css({
+
+ this.elm().find('.wb-layer').css({
position:'absolute',
top: 0,
left: 0
@@ -37,6 +38,7 @@ $wb.draw.Canvas = $wb.Class('Canvas',{
_layerNames:{},
__construct:function() {
this.__super(this.getDefaults());
+ this.elm().disableMarking();
},
addLayer:function(name,zIndex) {
if (typeof zIndex == 'undefined')
View
2  js/lib/widget.js
@@ -2175,7 +2175,7 @@ $wb.ui.Pane = $wb.Class('Pane',{
__construct:function(opts) {
this.__super(this.getDefaults(opts));
this.bind('paint',function() {
- this.elm().disableMarking();
+ //this.elm().disableMarking();
});
}
});
Please sign in to comment.
Something went wrong with that request. Please try again.