Browse Source

merge pr #70

tags/2.6.0
Caven Chen 4 years ago
parent
commit
d9bf2614c2
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      modules/themes/mapswitch.scss
  2. 1
    1
      modules/widget/type/MapSwitch.js

+ 1
- 1
modules/themes/mapswitch.scss View File

} }
} }
&:last-child { &:last-child {
margin-right: 0px !important;
margin-right: 0 !important;
} }
} }
} }

+ 1
- 1
modules/widget/type/MapSwitch.js View File

let width = 80 let width = 80
let rightMargin = 5 let rightMargin = 5
if (self._cache.length > 0) { if (self._cache.length > 0) {
width = self._cache.length * (width+rightMargin) - rightMargin
width = self._cache.length * (width + rightMargin) - rightMargin
} }
this._wrapper.style.width = `${width}px` this._wrapper.style.width = `${width}px`
} }

Loading…
Cancel
Save