Skip to content

Commit

Permalink
Switch style setter to use dojo/dom-style
Browse files Browse the repository at this point in the history
  • Loading branch information
green3g committed May 12, 2016
1 parent 580347d commit 6a83281
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions viewer/js/gis/dijit/Directions.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ define([
'esri/geometry/Point',
'esri/SpatialReference',
'dojo/topic',
'dojo/i18n!./Directions/nls/resource'
], function (declare, _WidgetBase, _TemplatedMixin, Directions, template, lang, Menu, MenuItem, PopupMenuItem, MenuSeparator, Point, SpatialReference, topic, i18n) {
'dojo/i18n!./Directions/nls/resource',
'dojo/dom-style'
], function (declare, _WidgetBase, _TemplatedMixin, Directions, template, lang, Menu, MenuItem, PopupMenuItem, MenuSeparator, Point, SpatialReference, topic, i18n, domStyle) {

return declare([_WidgetBase, _TemplatedMixin], {
templateString: template,
Expand All @@ -27,12 +28,14 @@ define([

//temp fix for 3.12 and 3.13 map click button.
if (this.directions._activateButton) {
this.directions._activateButton.style.display = 'none';
domStyle.set(this.directions._activateButton, 'display', 'none');
} else if (this.directions._activateButtonNode) {
this.directions._activateButtonNode.style.display = 'none';
this.directions._addDestinationNode.style['float'] = 'inherit';
this.directions._optionsButtonNode.style['float'] = 'inherit';
this.directions._optionsButtonNode.style.marginRight = '5px';
domStyle.set(this.directions._activateButtonNode, 'display', 'none');
domStyle.set(this.directions._addDestinationNode, 'float', 'inherit');
domStyle.set(this.directions._optionsButtonNode, {
'float': 'inherit',
marginRight: '5px'
});
}

if (this.mapRightClickMenu) {
Expand Down

0 comments on commit 6a83281

Please sign in to comment.