Fix border size for shapes

This commit is contained in:
Julia Radzhabova 2022-12-27 13:47:19 +03:00
parent a30a5dbeff
commit 5b9b912625
6 changed files with 6 additions and 6 deletions

View file

@ -1113,7 +1113,7 @@ define([
if (w!==null) w = this._mm2pt(w);
var _selectedItem = (w===null) ? w : _.find(this.cmbBorderSize.store.models, function(item) {
if ( w<item.attributes.value+0.00001 && w>item.attributes.value-0.00001) {
if ( w<item.attributes.value+0.0001 && w>item.attributes.value-0.0001) {
return true;
}
});

View file

@ -773,7 +773,7 @@ define([
if (w!==null) w = this._mm2pt(w);
var _selectedItem = (w===null) ? w : _.find(this.cmbBorderSize.store.models, function(item) {
if ( w<item.attributes.value+0.00001 && w>item.attributes.value-0.00001) {
if ( w<item.attributes.value+0.0001 && w>item.attributes.value-0.0001) {
return true;
}
});

View file

@ -1043,7 +1043,7 @@ define([
if (w!==null) w = this._mm2pt(w);
var _selectedItem = (w===null) ? w : _.find(this.cmbBorderSize.store.models, function(item) {
if ( w<item.attributes.value+0.00001 && w>item.attributes.value-0.00001) {
if ( w<item.attributes.value+0.0001 && w>item.attributes.value-0.0001) {
return true;
}
});

View file

@ -976,7 +976,7 @@ define([
if (w!==null) w = this._mm2pt(w);
var _selectedItem = (w===null) ? w : _.find(this.cmbBorderSize.store.models, function(item) {
if ( w<item.attributes.value+0.00001 && w>item.attributes.value-0.00001) {
if ( w<item.attributes.value+0.0001 && w>item.attributes.value-0.0001) {
return true;
}
});

View file

@ -1039,7 +1039,7 @@ define([
if (w!==null) w = this._mm2pt(w);
var _selectedItem = (w===null) ? w : _.find(this.cmbBorderSize.store.models, function(item) {
if ( w<item.attributes.value+0.00001 && w>item.attributes.value-0.00001) {
if ( w<item.attributes.value+0.0001 && w>item.attributes.value-0.0001) {
return true;
}
});

View file

@ -973,7 +973,7 @@ define([
if (w!==null) w = this._mm2pt(w);
var _selectedItem = (w===null) ? w : _.find(this.cmbBorderSize.store.models, function(item) {
if ( w<item.attributes.value+0.00001 && w>item.attributes.value-0.00001) {
if ( w<item.attributes.value+0.0001 && w>item.attributes.value-0.0001) {
return true;
}
});