Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into fix-broken-pane-to…
Browse files Browse the repository at this point in the history
…ggle
  • Loading branch information
green3g committed Oct 6, 2016
2 parents 1fafd15 + efc0ee8 commit 1a2af13
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion viewer/css/cmv-theme-overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

.cmv .dijitTitlePane {
margin-bottom: 2px;
background-color: #FFF;
}

.cmv .dijitTitlePaneTitle {
Expand Down Expand Up @@ -191,7 +192,6 @@

.flat .dijitTitlePaneTitle {
border: 1px solid #DDD;
border-bottom: none;
-webkit-border-radius: 4px;
border-radius: 4px;
padding: 8px 15px;
Expand Down
4 changes: 2 additions & 2 deletions viewer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
<link rel="shortcut icon" href="./favicon.png">
<title>Configurable Map Viewer</title>
<link rel="stylesheet" type="text/css" href="https://js.arcgis.com/3.18compact/esri/css/esri.css">
<link rel="stylesheet" type="text/css" href="css/theme/dbootstrap/dbootstrap.css">
<link rel="stylesheet" type="text/css" href="css/theme/flat/flat.css">
<link rel="stylesheet" type="text/css" href="css/cmv-theme-overrides.css">
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="css/main.css">
</head>
<body class="cmv dbootstrap">
<body class="cmv flat">
<div class="appHeader">
<div class="headerLogo">
<img alt="logo" src="images/rocket-logo.png" height="54" />
Expand Down
16 changes: 8 additions & 8 deletions viewer/js/gis/dijit/FloatingTitlePane.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ define([
'dojo/dnd/Moveable',
'dojo/aspect',
'dojo/topic',
'dojo/sniff',
'dojo/_base/window',
'dojo/window',
'dojo/dom-geometry',
Expand All @@ -16,7 +17,7 @@ define([
'dojox/layout/ResizeHandle',
'xstyle/css!dojox/layout/resources/ResizeHandle.css',
'xstyle/css!./FloatingTitlePane/css/FloatingTitlePane.css'
], function (declare, TitlePane, on, lang, Moveable, aspect, topic, win, winUtils, domGeom, domStyle, domConstruct, domAttr, domClass, ResizeHandle) {
], function (declare, TitlePane, on, lang, Moveable, aspect, topic, has, win, winUtils, domGeom, domStyle, domConstruct, domAttr, domClass, ResizeHandle) {

return declare([TitlePane], {
sidebarPosition: null,
Expand All @@ -41,8 +42,12 @@ define([
},
startup: function () {
if (this.titleBarNode && this.canFloat) {
if (has('edge') || has('trident')) {
this.dragDelay = 0;
}
this._moveable = new Moveable(this.domNode, {
handle: this.titleBarNode
handle: this.titleBarNode,
delay: this.dragDelay
});
this._titleBarHeight = domStyle.get(this.titleBarNode, 'height');
aspect.after(this._moveable, 'onMove', lang.hitch(this, '_dragging'), true);
Expand Down Expand Up @@ -100,12 +105,7 @@ define([
},

/* Methods for Dragging */
_dragging: function (mover) {
// add our own delay since the movable delay
// property breaks in all versions of Internet Explorer
if (Math.abs(mover.marginBox.l - this._moverBox.l) <= this.dragDelay || Math.abs(mover.marginBox.t - this._moverBox.t) <= this.dragDelay) {
return;
}
_dragging: function () {
this.isDragging = true;
if (!this.titleCursor) {
this.titleCursor = domStyle.get(this.titleBarNode, 'cursor');
Expand Down

0 comments on commit 1a2af13

Please sign in to comment.