Skip to content

Commit

Permalink
Update build and CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtoye committed Dec 19, 2013
1 parent 762e872 commit c1c01dd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ An in-progress version being developed on the master branch.
* Fire `editstart` events when a poly or simple shape is initially edited. (by [@atombender](https://github.com/atombender). [#245](https://github.com/Leaflet/Leaflet.draw/pull/245)
* Add ability to add a new vertex to a polyline or polygon hander.
* Added ability to remove/undo the last placed point for polyline or polygons. (by [@Zverik](https://github.com/Zverik). [#242](https://github.com/Leaflet/Leaflet.draw/pull/242)
* Dynamically position the action toolbars. (by [@DevinClark](https://github.com/DevinClark). [#240](https://github.com/Leaflet/Leaflet.draw/pull/240)

### Bugfixes

Expand Down
11 changes: 5 additions & 6 deletions dist/leaflet.draw-src.js
Original file line number Diff line number Diff line change
Expand Up @@ -1943,12 +1943,13 @@ L.Toolbar = L.Class.extend({
addToolbar: function (map) {
var container = L.DomUtil.create('div', 'leaflet-draw-section'),
buttonIndex = 0,
buttonClassPrefix = this._toolbarClass || '';
buttonClassPrefix = this._toolbarClass || '',
modeHandlers = this.getModeHandlers(map),
i;

this._toolbarContainer = L.DomUtil.create('div', 'leaflet-draw-toolbar leaflet-bar');
this._map = map;

var modeHandlers = this.getModeHandlers(map), i;
for (i = 0; i < modeHandlers.length; i++) {
if (modeHandlers[i].enabled) {
this._initModeHandler(
Expand Down Expand Up @@ -2134,9 +2135,7 @@ L.Toolbar = L.Class.extend({
_showActionsToolbar: function () {
var buttonIndex = this._activeMode.buttonIndex,
lastButtonIndex = this._lastButtonIndex,
buttonHeight = 26, // TODO: this should be calculated
borderHeight = 1, // TODO: this should also be calculated
toolbarPosition = (buttonIndex * buttonHeight) + (buttonIndex * borderHeight) - 1;
toolbarPosition = this._activeMode.button.offsetTop - 1;

// Recreate action buttons on every click
this._createActions(this._activeMode.handler);
Expand Down Expand Up @@ -2376,7 +2375,7 @@ L.EditToolbar = L.Toolbar.extend({
featureGroup: featureGroup
}),
title: L.drawLocal.edit.toolbar.buttons.remove
},
}
];
},

Expand Down
Loading

0 comments on commit c1c01dd

Please sign in to comment.