});
$(document).on('mousedown', "#linkeditor-main", function (e) {
- var deselectAll=true;
+ var deselectAll = true;
$this.setMouseCoordinates(e);
if ($(this).hasClass('duplicate')) {
$this.links.duplicateLinkClick();
} else {
$this.zoom.resetZoomDrag();
$this.links.createLinkDrag();
- deselectAll=false;
+ deselectAll = false;
}
- if(deselectAll) {
+ if (deselectAll) {
$this.links.deselectAllLinks();
}
});
if ($(e).is('[fb-' + dim + ']')) {
let v = parseFloat($(e).attr('fb-' + dim));
if (dim === 'width' || dim === 'height') {
- css[dim] = v * ($this.fs * $this.zoom.zoom);
+ css[dim] = (v * ($this.fs * $this.zoom.zoom)) + 1;
} else {
css[dim] = $this.fluidbookTo(v, dim, rect);
}